View Single Post
Old 01-17-2012, 08:17 PM   PM User | #2
leslie.jones
New Coder

 
Join Date: Nov 2011
Posts: 88
Thanks: 4
Thanked 26 Times in 26 Posts
leslie.jones is an unknown quantity at this point
Assuming you are looking to redirect......>>

Code:
http://example.null/clanok/blog_obsah/id/32
redirecting to
http://example.null/index.php?clanok=blog_obsah&id=32
AND
Code:
http://example.null/clanok/blog_obsah
redirecting to
http://example.null/index.php?clanok=blog_obsah
The simple way (and I've not tested it for major caveats) would be:

Code:
RewriteRule ^clanok/(.*)/(.*)/(.*)$ index.php?clanok=$1&$2=$3 [L]
RewriteRule ^clanok/(.*)$ index.php?clanok=$1 [L]
NOTE THE ORDER OF THE RULES IS IMPORTANT! If you place them the other way around, it won't work.
leslie.jones is offline   Reply With Quote
Users who have thanked leslie.jones for this post:
Trki (01-18-2012)