Forum Moderators: phranque

Message Too Old, No Replies

Mod rewrite and Godaddy

Switched servers and having problems

         

lizardlips

12:36 am on Jan 2, 2007 (gmt 0)

10+ Year Member



Moved our site recently and our mod_rewrite is not working. I have done some research and found this is common with godaddy. Does anyone have any experience with the godaddy problem?

eelixduppy

1:01 am on Jan 2, 2007 (gmt 0)



I've never used godaddy before but I would guess that they do not allow mod_rewrite? Not sure of this, but I would check their help section to see if they have any info on the subject. If it is a common problem you say it is, then I'm sure they address it somewhere on their site.

jdMorgan

1:02 am on Jan 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



GD may not support mod_rewrite -- Given some of their other practices, this would not surprise me.

Put up a simple test rule in .htaccess, like:


Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteRule ^foo\.html$ http://www.google.com/ [R=301,L]

Then request "foo.html" from your site. If it doesn't redirect to Google, then you need a new host.

Jim

lammert

4:49 am on Jan 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have used GoDaddy with shared hosting and mod_rewrite in the .htaccess file with success. The problem I encountered is, that GoDaddy does not recognize the existence of a .htaccess file right away. For me, it took about half a day after uploading a .htaccess file before the content was parsed. After that every change to .htaccess was picked up right away.

My guess is that they are running a cron job periodically to see which directories contain a .htaccess file and mark those directories with an "AllowOverride" in the central httpd.conf to prevent real-time searching for non-existent .htaccess files every time a page is accessed.