Jump to content

Rewrite rules not working on goDaddy server


The14thGOD

Recommended Posts

Trying to get this to work on godaddy but it's not, any ideas? I've done a lot of googleing but all the options (turn multi-view off, rewrite base, follow syslinks) have failed. Anyone have any experience with this? This is just a CMS I made. It works on several other servers, so I'm a little lost as to why it's not working. I did do the mod_rewrite is enabled test and it worked so no idea whats the issue. I get the 500 internal server error.

 

Here's the code:

RewriteEngine On
RewriteRule ^feed.xml feed.php [L] 
RewriteRule ^([a-z0-9-_]+)$ page.php?theurl=$1 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)$ page.php?theurl=$1/$2 [L]
RewriteRule ^([a-z0-9-_]+)/([a-z0-9-_]+)/([a-z0-9-_]+)$ page.php?theurl=$1/$2/$3 [L]

 

Thanks for any and all help.

Justin

 

p.s. if anyone who knows mod_rewrite better than me could help me condense that into one line, that would be amazing. I tried once before but failed and haven't tried since. Once this project gets launched it's one of my next goals.

  • 4 weeks later...

Options +FollowSymLinks +Indexes

RewriteEngine on

RewriteBase /

RewriteRule ^([^.]+)/([^.]+)/([^.]+)$ page.php?theurl=$1/$2/$3 [L]

RewriteRule ^([^.]+)/([^.]+)$ page.php?theurl=$1/$2 [L]

RewriteRule ^([^.]+)$ page.php?theurl=$1 [L]

RewriteRule ^feed.xml feed.php [L]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.