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