<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>

	<title>RSS 2.0 Komentářů k článku "mod_rewrite a hezké url díl II"</title>
	<atom:link href="https://mike.treba.cz/rss/komentare-detail/mod_rewrite-a-hezke-url-dil-ii/" rel="self" type="application/rss+xml" />
	<link>https://mike.treba.cz/</link>
	<description>RSS 2.0 Komentářů k článku "mod_rewrite a hezké url díl II"</description>
	<lastBuildDate>Tue, 19 Dec 2023 19:01:58 +1100</lastBuildDate>
	<language>cs</language>
	<generator>Abstract CMS</generator>
	<sy:updatePeriod>daily</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>

			<item>
			<title>Mike</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1831</link>
			<pubDate>Tue, 19 Dec 2023 19:01:58 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Mike</dc:creator>
			<description><![CDATA[a čeho přesně má ten zápis docílit? nefunguje to pravděpodobně kvůli tomu lomítku tady: /?stasa=$

jinak proč tam cpát i ty html přípony? to moc nedává smysl. udělal bych to co nejjednodušší: 

RewriteEngine On
RewriteBase /stasa2023/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ ?stasa=$1 [L,QSA]

pak to udělá url např. /stasa2023/kontakt/, a zobrází se /stasa2023/?stasa=kontakt, tedy $_GET['stasa'] == 'kontakt'

zkusil bych s i bez rewrite base.]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1831</guid>
		</item>
			<item>
			<title>Ondřej Klhůfek</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1830</link>
			<pubDate>Tue, 19 Dec 2023 12:42:20 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Ondřej Klhůfek</dc:creator>
			<description><![CDATA[Tak to nefunguje :-/
Mám to takto:
RewriteEngine on
RewriteBase /stasa2023/
RewriteRule ^([A-Za-z0-9-]+).(html)?$ /?stasa=$1 [L,QSA]

A co mi prosím doporučíte na localhost? Něco jednoduché? :-) 
Asi to odladím na local a pak jen překopíruji. Web nemá admin,  vše dělám ručně, jen potřebuji kontrolovat jak vypadají ceníky než to tam nakopíruji.
Děkuji Vám moc]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1830</guid>
		</item>
			<item>
			<title>Mike</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1829</link>
			<pubDate>Mon, 18 Dec 2023 19:06:35 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Mike</dc:creator>
			<description><![CDATA[dobrý den,
mělo by stačit nahrát .htaccess se stejným přepisem hezkých url do toho podadresáře a akorát přidat 

RewriteBase /stasa2023/ 

hned za RewriteEngine On. a jinak určitě doporučuji testovat i na localhostu.]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1829</guid>
		</item>
			<item>
			<title>Ondřej Klhůfek</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1828</link>
			<pubDate>Mon, 18 Dec 2023 15:57:26 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Ondřej Klhůfek</dc:creator>
			<description><![CDATA[Dobrý den,

web jede pomocí skládání přes include, to funguje, ale teď si ladím nový web https://stasa.cz/stasa2023/ a potřebuji, aby mi .htaccess udělal přesměrování na hezké adresy i v podsložce. Lze to nějak? Nebo bude snazší na testování mít na pc localhost a tam to ladit? děkuji Ondra]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1828</guid>
		</item>
			<item>
			<title>Miro</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1646</link>
			<pubDate>Thu, 24 Mar 2016 20:54:30 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Miro</dc:creator>
			<description><![CDATA[super! funguje to... diky :)]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1646</guid>
		</item>
			<item>
			<title>Mike</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1645</link>
			<pubDate>Thu, 24 Mar 2016 09:26:21 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Mike</dc:creator>
			<description><![CDATA[dal bych to hned za přesměrování na www. nejdřív všechny redirekty, potom podstrčení.]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1645</guid>
		</item>
			<item>
			<title>Miro</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1644</link>
			<pubDate>Thu, 24 Mar 2016 08:33:24 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Miro</dc:creator>
			<description><![CDATA[este mi skus povedat, ze kam to mam dat, aby to fungovalo a aj to co tam mam :)]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1644</guid>
		</item>
			<item>
			<title>Mike</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1643</link>
			<pubDate>Wed, 23 Mar 2016 12:24:56 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Mike</dc:creator>
			<description><![CDATA[ahoj, no tohle už jsem dlouho nedělal :-) zkus toto (u mně funguje).

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)/$ $1 [R=301,QSA,L]]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1643</guid>
		</item>
			<item>
			<title>Miro</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1642</link>
			<pubDate>Wed, 23 Mar 2016 11:34:11 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Miro</dc:creator>
			<description><![CDATA[Ahoj, kedysi som tu nasiel navod ako spravit pekne URL a teraz by som potreboval, aby keby ktosi zada adresu s lomitkom, nech ho presmeruje cez 301 na bez lomitka, vies mi poradit?
moj .htaccess vypada takto:

# defaultny startovaci subor
DirectoryIndex index.php index.html start.html


RewriteEngine on
Options +FollowSymlinks

####### Presmerovanie na verziu domény s www ######
RewriteCond %{HTTP_HOST} ^domena.sk
RewriteRule (.*) http://www.domena.sk/$1 [R=301,QSA,L]



######## PEKNE URL
####http://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ ?arg1=$1

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)?/?$ ?arg1=$1&amp;arg2=$2

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)/([^/]+)?/?/?$ ?arg1=$1&amp;arg2=$2&amp;arg3=$3



### vynimky peknych url na adresare
RewriteRule ^admin/.*$ - [PT]]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1642</guid>
		</item>
			<item>
			<title>Martin</title>
			<link>https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1517</link>
			<pubDate>Sun, 1 Feb 2015 18:51:22 +1100</pubDate> 
			<comments></comments>
			<dc:creator>Martin</dc:creator>
			<description><![CDATA[Ahoj,

som Ti maximálne zaviazaný, ďakujem za pomoc a trpezlivosť, pripadal som si ako totálny idiot. 

Problém je vyriešený, vďaka Tebe. :-)

To propagovanie si zaslúžiš, takže nemáš za čo ďakovať. :-)]]></description>   
			<guid isPermaLink="false">https://mike.treba.cz/mod_rewrite-a-hezke-url-dil-ii/#comment=1517</guid>
		</item>
	
</channel>
</rss>