Forum Moderators: phranque

Message Too Old, No Replies

GoDaddy, .HTACCESS, and mod_rewrite

         

dualfragment

9:46 pm on Mar 23, 2005 (gmt 0)

10+ Year Member



Does this work with godaddy hosting?

I emailed them about .htaccess support, and they said you can use it to password protect directories, but nothing was mentioned about mod_rewrite.

RewriteEngine On
RewriteRule ^lyrics/(.*)/(.*).html$ viewLyrics.php?id=$2

When I go to [my domain]/lyrics/ajkfdjklsfkas/12.html, it just shows my 404 error page.

sitz

12:32 am on Mar 24, 2005 (gmt 0)

10+ Year Member



Easy way to test:

RewriteEngine on
RewriteRule ^.* http://www.some-totally-different-server.com/ [L,R]

If you get redirected to the remote site, mod_rewrite works. =)

dualfragment

3:17 am on Mar 24, 2005 (gmt 0)

10+ Year Member



It doesn't work :(

Does the file have to be saved as Unix text file, like robots.txt does? (I did this, but if it is wrong, I will try not doing it)

sitz

3:27 am on Mar 24, 2005 (gmt 0)

10+ Year Member



yeah, the .htaccess file is just plain unix text. Sounds like they don't have the FileInfo option set on their AllowOverride line (assuming they *are* running Apache; I think .htaccess files get used on a few other types of servers as well).

dualfragment

3:44 am on Mar 24, 2005 (gmt 0)

10+ Year Member



Finally got a response from GoDaddy.

They allow .htaccess files, but they don't allow mod-rewriting. *sigh*

Is there another alternative that has no negative aspects? I really need to do this :(