.htaccess not working on godaddy

Discussion in 'Apache' started by dan101, Dec 7, 2009.

  1. #1
    Hi all

    I moved my site to godaddy and the old .htaccess is not working. It gives me
    
    Not Found
    The requested URL /about-us/ was not found on this server.
    Code (markup):
    This is from .htaccess

    Options +FollowSymlinks
    RewriteEngine On
    
    RewriteRule ^blog/(.*) /blog.php/$1
    RewriteRule ^about-us/(.*) /about-us.php/$1
    Code (markup):
    The code is working well on my old hosting. What changes I need to make to work on godaddy as well
     
    dan101, Dec 7, 2009 IP
  2. dan101

    dan101 Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i have contacted but they told me that the code for the links is referencing a folder ("About Us") that does not exist - i think they don't know about friendly urls
     
    dan101, Dec 8, 2009 IP
  3. chadsmith

    chadsmith Peon

    Messages:
    82
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've had this issue on their shared hosting. For some reason there's a delay before a new .htaccess file takes effect.

    I suggest you also try adding a RewriteBase to see if that fixes it:

    RewriteBase /
    Code (markup):
     
    chadsmith, Dec 8, 2009 IP