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.

Link to comment
Share on other sites

  • 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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.