Godaddy and mod_rewrite
August 21st, 2007, 04:31 pm
If you are considering using Godaddy to host your website, don’t. Run away as fast as you can and get a proper web host. The more I have used Godaddy for more only domains, the more I hate them. Godaddy is a domain company and nothing more. Yes, they are cheap and that is service you get. Cheap.
Today I found out that Godaddy doesn’t mod_rewrite files ending in .php. You can redirect other file types to php files but you can’t rewrite php files to other files.
I’m guessing this is because Godaddy parses php files before it even gets to your .htaccess file.
Godaddy, can you server setup be any more messed up? Why can’t you do it properly?
Update August 4, 2008
0w3w commented and said
I’m not native speaker, sorry for the grammar..
Well, I had the same problem u have, and after some googling I found the answer it is as simple as one instruction on the .htaccess:
Options -MultiViewsThis is the .htaccess that worked for me:
Options +FollowSymLinks
Options -MultiViews
rewriteEngine On
rewriteRule ^test/(.*)\.php$ /test.php?variable=$1If this do not work or your hosting is in the root directory try taking out the / on the second part of the rewrite rule, like this
rewriteRule ^test/(.*)\.php$ test.php?variable=$1Hope I’d helped ^^
I have not tested this but others have said this works.









By Tim on September 13th, 2007 at 6:31 pm
Having exactly the same damn problem! Its so frustrating searching trying to find out a solution and now i see there isnt one!
Last time i EVER use and excuse of webhost company, they are utterly pathetic!
P.S. Thanx for the post
By JPD on November 8th, 2007 at 12:38 pm
Use Dreamhost - cheap and reliable -
By 0w3w on June 13th, 2008 at 4:23 pm
I’m not native speaker, sorry for the grammar..
Well, I had the same problem u have, and after some googling I found the answer it is as simple as one instruction on the .htaccess:
Options -MultiViewsThis is the .htaccess that worked for me:
Options +FollowSymLinksOptions -MultiViews
rewriteEngine On
rewriteRule ^test/(.*)\.php$ /test.php?variable=$1
If this do not work or your hosting is in the root directory try taking out the / on the second part of the rewrite rule, like this
rewriteRule ^test/(.*)\.php$ test.php?variable=$1Hope I’d helped ^^
By Matt D. on August 4th, 2008 at 4:14 pm
Nice call 0w3w! That works perfectly for me.