tiki Posted December 2, 2005 Share Posted December 2, 2005 My .htaccess is not working at all, heres the code: RewriteEngine on RewriteRule ^([a-z]+)/$ info.php?page=$1 RewriteRule ^([a-z]+)/$ users.php?page=$1 RewriteRule ^news/$ news.php RewriteRule ^news/([a-z]+)/$ news.php?page=$1 RewriteRule ^news/([a-z]+)/([0-9+])/$ news.php?page=$1&id=$2 RewriteRule ^store/$ store.php RewriteRule ^store/([a-z]+)/$ store.php?page=$1 RewriteRule ^store/([0-9]+)/$ store.php?id=$1 RewriteRule ^store/([a-z]+)/([0-9]+)/$ store.php?&page=$1&id=$2 RewriteRule ^store/([a-z]+)/([a-z]+)/$ store.php?page=$1&func=$2 RewriteRule ^store/([a-z]+)/([a-z]+)/([0-9]+)/$ store.php?page=$1&func=$2&id=$3 RewriteRule ^popup/$ popup.php RewriteRule ^popup/([a-z]+)/$ popup.php?page=$1 And when I go to any page, the content will not show. Why is this? Quote Link to comment https://forums.phpfreaks.com/topic/2967-mod_rewrite-not-working-at-all/ Share on other sites More sharing options...
Guest footballkid4 Posted December 2, 2005 Share Posted December 2, 2005 Check your enable mod_rewrite error handling ONLY FOR TESTING, DISABLE IT WHEN YOU ARE DONE Quote Link to comment https://forums.phpfreaks.com/topic/2967-mod_rewrite-not-working-at-all/#findComment-9979 Share on other sites More sharing options...
tiki Posted December 2, 2005 Author Share Posted December 2, 2005 How would I do that? Quote Link to comment https://forums.phpfreaks.com/topic/2967-mod_rewrite-not-working-at-all/#findComment-9981 Share on other sites More sharing options...
tiki Posted December 3, 2005 Author Share Posted December 3, 2005 Can you tell me please Quote Link to comment https://forums.phpfreaks.com/topic/2967-mod_rewrite-not-working-at-all/#findComment-10001 Share on other sites More sharing options...
tiki Posted December 6, 2005 Author Share Posted December 6, 2005 This is why I dislike apache forums. Quote Link to comment https://forums.phpfreaks.com/topic/2967-mod_rewrite-not-working-at-all/#findComment-10036 Share on other sites More sharing options...
bon Posted January 21, 2006 Share Posted January 21, 2006 Tiki, Your first two regular expressions are identical RewriteRule ^([a-z]+)/$ info.php?page=$1 RewriteRule ^([a-z]+)/$ users.php?page=$1 If you visit example.com/page/ it will match both those expressions. Quote Link to comment https://forums.phpfreaks.com/topic/2967-mod_rewrite-not-working-at-all/#findComment-11039 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.