conker87 Posted July 7, 2009 Share Posted July 7, 2009 This is the .htaccess file I'm using: RewriteEngine On RewriteBase / RewriteRule ^articles/([a-z0-9-]*)/$ index.php?article=$1 [NC] #RewriteRule ^reviews/([a-z0-9-]*)/$ index.php?review=$1 [NC,L] #RewriteRule ^strips/([a-z0-9-]*)/$ index.php?strip=$1 [NC,L] #RewriteRule ^users/([a-z0-9-]*)/$ index.php?user=$1 [NC,L] #RewriteRule ^pages/([a-z0-9-]*)/$ index.php?page=$1 [NC,L]] However it's now causing a 500 error, which it wasn't doing earlier. Even with all 5 rules commented out it still brings up an error. Quote Link to comment https://forums.phpfreaks.com/topic/165089-rewrite-causing-server-error/ Share on other sites More sharing options...
wildteen88 Posted July 13, 2009 Share Posted July 13, 2009 Check your sites error log. Your server may not have the mod_rewrite module enabled. Quote Link to comment https://forums.phpfreaks.com/topic/165089-rewrite-causing-server-error/#findComment-874671 Share on other sites More sharing options...
lifetalk Posted July 26, 2009 Share Posted July 26, 2009 If you're commenting out all the rules, and your site turns up an error, the problem is with some PHP file, and not the .htaccess Quote Link to comment https://forums.phpfreaks.com/topic/165089-rewrite-causing-server-error/#findComment-883116 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.