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 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. Link to comment https://forums.phpfreaks.com/topic/266347-mod-rewrite-please-help/#findComment-1364943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.