shyam13 Posted July 27, 2012 Share Posted July 27, 2012 I created an ht access file for my website and I made a few adjustment to the file and now my website has crashed, I can access some web pages and when I access other web pages, they show a 404 error, please help This is the code for my htaccess file: RewriteEngine on RewriteBase / RewriteRule ^([A-Za-z0-9-]+)$ $1.php [NC] #Content Rule RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([A-Za-z0-9-]+)\.php$ content.php?name=$1 [L,NC,QSA] Thank you Shyam Quote Link to comment https://forums.phpfreaks.com/topic/266347-mod-rewrite-please-help/ Share on other sites More sharing options...
requinix Posted July 27, 2012 Share Posted July 27, 2012 mod_rewrite questions go in the mod_rewrite forum. Moved. Use an [R] flag in both Rules and see where you're being redirected to. Quote Link to comment https://forums.phpfreaks.com/topic/266347-mod-rewrite-please-help/#findComment-1364943 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.