Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2007
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Some url rewrites not working on godaddy

    Hi,

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

    Code:
    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:

    Code:
    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:

    Code:
    RewriteRule ^([0-9]+)/([A-Za-z0-9_-]+)$ /$1/$2/ [NC,R]
    RewriteRule ^([0-9]+)/[A-Za-z0-9_-]+/$ /post.php?id=$1 [NC,L]
    Last edited by mlmorg; 02-09-2009 at 05:43 AM.

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok I read somewhere that the fix is to add this one line:

    Code:
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •