Posted in:
4,535 views
I’m writing this article specifically for people hosted on godaddy that have had the following .htaccess, mod_rewrite or addhandler problems on shared or premium hosting accounts for various open source applications, such as (but not limited to) Wordpress, Drupal, BBPress, Moodle, Geeklog, PHPNuke, Postnuke, and more!
Short list of potential issues:
- problems with permalinks in Wordpress
- problems with clean URL’s in Drupal
- problems with pretty url’s in BBPress
- problems with Wordpress MU
- ANY mod_rewrite problems in a sub-directory, subdomain, sub-folder, mapped domain, i.e., a domain you setup in goDaddy’s Domain Management -> Assign Domain to Hosting Site feature
I have struggled with two issues time and time again on a goDaddy shared or premium account. If I go into “Domain management -> Assign Domain” and “map” a domain to a folder of the root URL, I have problems with any site that needs to use an .htaccess file for “rewrite” the URL’s using a feature called “mod_rewrite” - especially Wordpress and Drupal.
I came across a fix today that made all those problems go away forever. To be able to do what I’m about to tell you, you must also be hosting your domain name with goDaddy.
In your godaddy control panel, go to “Settings -> Domain Management”.
Click on “Add New Record”
In the very first line note the IP address of your “@” host, as you’ll by typing this into the box that comes up when you click to add a new record. In the first field type an asterik (*). In the second field type the IP address of your “@” host. Leave the drop down at one hour. Click “ok” to save.
That’s it - you’re done! There should be no fiddling with your .htaccess files at all.
Once I applied that simple fix - everything worked again.
I’ve also had problems when I’ve attempted to get .html or .htm files to parse PHP code as if they were .php files on goDaddy, or with applications that had to use PHP5. That fix is also really, really easy. All you have to do is create an .htaccess file with the following 2 lines:
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php .htm html


























January 24th, 2008 at 9:13 pm
Thanks for figuring this out.
One suggestion, I believe you meant “Settings -> DNS Manager†instead of “Settings -> Domain Management 
Otherwise, excellent information.
Please edit (or delete) this comment after you edit you instructions.
Thanks again.
March 4th, 2008 at 4:27 am
[...] Blogs http://www.crazyleafdesign.com/blog/check-if-mod_rewrite-is-activated-on-your-server/ http://www.jtpratt.com/2008/01/22/how-to-fix-htaccess-file-for-mod_rewrite-and-addhandler-on-godaddy... http://pensae.com/2008/01/14/when-mod_rewrite-doesnt-work/ [...]
March 16th, 2008 at 12:34 pm
I was wondering, what about build a niche store type sites? Is there any way to put them on a subdomain without problems?
Pink Munoz’s last blog post..Depression Glass Patterns
March 16th, 2008 at 12:35 pm
is there a way to get bans sites to work like this?
erica Munoz’s last blog post..Depression Glass Patterns
March 21st, 2008 at 3:09 pm
When I did this I was able to get my BANS site to work…
May 4th, 2008 at 8:52 pm
WOW! Thanks! This worked for me with Wordpress!
May 22nd, 2008 at 2:30 pm
hi,
i tried this too, but it said the subdomain is not valid! :(
any clue?
July 1st, 2008 at 10:20 pm
This was helpful to me. Very strange that setting up a wildcard could fix the mod_rewrite issue, but i’ll take it!
August 27th, 2008 at 12:23 pm
thanks.
this was so helpful, i’m putting a link back to you on my site.
ken
August 27th, 2008 at 12:25 pm
@Ken - thanks! That’s why I posted it, it was the instructions that “I” was missing when I had the same problem!![=)]](http://www.jtpratt.com/wp-includes/images/smilies/4.gif)
September 28th, 2008 at 1:12 pm
many thanks
It works perfect.
It is very helpful for many people