...

Some url rewrites not working on godaddy

mlmorg
02-09-2009, 03:29 AM
Hi,

I have a couple of rewrites that were working on dreamhost but do not work on godaddy. One such rewrite:


RewriteRule ^tag/([A-Za-z0-9_-]+)$ /tag/$1/ [NC,R]
RewriteRule ^tag/([A-Za-z0-9_-]+)/$ /tag.php?tag=$1 [NC,L]


This does not work on godaddy but works on dreamhost...The next one, however, works on both:


RewriteRule ^food$ /food/ [NC,R]
RewriteRule ^food/$ /food.php [NC,L]


Why is this? In fact, it doesn't even seem like godaddy is even looking at the .htaccess file but is instead just redirecting every /*example*/ to /*example*.php

Has anyone ever encountered this before? Is there anything to do?

Thanks!

** It also looks like this one works too:

RewriteRule ^([0-9]+)/([A-Za-z0-9_-]+)$ /$1/$2/ [NC,R]
RewriteRule ^([0-9]+)/[A-Za-z0-9_-]+/$ /post.php?id=$1 [NC,L]

mlmorg
02-09-2009, 05:44 AM
Ok I read somewhere that the fix is to add this one line:

Options -MultiViews

This seemed to fix all my non-working rewrites. If anyone else has trouble with godaddy rewrites I'd suggest adding that line to see if it helps.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum