Demonic Posted February 18, 2008 Share Posted February 18, 2008 I have this mod rewrite: Options +FollowSymLinks RewriteEngine on RewriteRule watch/season/(.*)/episode/(.*)/(.*)/$ /index.php?action=watch&season=$1&ep=$2&id=$3 RewriteRule (.*)/$ /index.php?action=$1 The last rewrite rule works perfectly, but the first one doesn't, if I remove the last rewrite rule the first one works fine. How can I fix this? Link to comment https://forums.phpfreaks.com/topic/91716-php-mod-rewrite-problem/ Share on other sites More sharing options...
dave420 Posted February 18, 2008 Share Posted February 18, 2008 Have you tried putting [L] after the first rewrite rule to stop it being further re-written by the next rule? Link to comment https://forums.phpfreaks.com/topic/91716-php-mod-rewrite-problem/#findComment-469765 Share on other sites More sharing options...
Demonic Posted February 18, 2008 Author Share Posted February 18, 2008 no never tried that *tires it now* Link to comment https://forums.phpfreaks.com/topic/91716-php-mod-rewrite-problem/#findComment-469770 Share on other sites More sharing options...
Demonic Posted February 18, 2008 Author Share Posted February 18, 2008 thanks it worked solved theres no solve mod any more -.-.. Link to comment https://forums.phpfreaks.com/topic/91716-php-mod-rewrite-problem/#findComment-469773 Share on other sites More sharing options...
dave420 Posted February 18, 2008 Share Posted February 18, 2008 No problem! As it says in the documentation - "Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo". Link to comment https://forums.phpfreaks.com/topic/91716-php-mod-rewrite-problem/#findComment-469791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.