How to fix .htaccess file for mod_rewrite and addhandler on godaddy subdomain如何修复。 htaccess文件mod_rewrite和addhandler关于godaddy子
5,599 views - 5599意见者:管Posted in: 张贴于:
5,599 views 5599意见
Please note: This page was originally written in English.请注意:此网页最初是用英文写的。
The original post can be viewed原来的文章可被视为 here这里 . 。
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
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!我写这篇文章专门为人民托管在godaddy认为有以下几点。 htaccess , mod_rewrite或addhandler问题或溢价共同主办的各种帐目开源应用程序,如(但不限于) WordPress的, ,网站BBPress ,中文, Geeklog , PHPNuke , PostNuke的,以及更多!
Short list of potential issues:短名单中潜在的问题:
- problems with permalinks in Wordpress问题在WordPress的永久
- problems with clean URL’s in Drupal问题清洁网址的在Drupal
- problems with pretty url’s in BBPress问题很网址的在BBPress
- problems with Wordpress MU WordPress的问题,穆
- ANY mod_rewrite problems in a sub-directory, subdomain, sub-folder, mapped domain, ie, a domain you setup in goDaddy’s Domain Management -> Assign Domain to Hosting Site feature任何mod_rewrite问题的一个分目录,子子文件夹,映射域,即域名设置在GoDaddy的域名管理-> “指定网域,以托管网站功能
I have struggled with two issues time and time again on a goDaddy shared or premium account.我挣扎,这两个问题一次又一次地在goDaddy共享或溢价帐。 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.如果我进入“域名管理-> ”指定网域“和”地图“网域到一个文件夹中的根网址,我有问题,任何网站,需要使用。 h taccess文件的”重写“的网址的使用功能称为“ mod_rewrite ” -尤其是D rupal和W ordPress的。
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 .为了能够做我要告诉你, 你还必须托管您的网域名称与goDaddy 。
In your godaddy control panel, go to “Settings -> Domain Management”.在您的godaddy的控制面板,进入“设置-> ”域名管理“ 。
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.在第一行非常注意的IP地址“ @ ”所在,因为你会输入到这一点的方块,出现当您单击添加一个新的纪录。 In the first field type an asterik (*).在第一场键入一个asterik ( * ) 。 In the second field type the IP address of your “@” host.在第二个栏位中输入的IP地址“ @ ”主机。 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.不应该有你的顺藤摸瓜。 htaccess文件在所有。
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.我也有问题时,我已经试图获得。 html或。热媒档案解析PHP代码,就好像这些。 PHP文件上goDaddy ,或与应用程序必须使用PHP5 。 That fix is also really, really easy.这种修复也是真的,真的很容易。 All you have to do is create an .htaccess file with the following 2 lines:所有您需要做的就是创建一个。 htaccess文件,下面的两行:
AddHandler x-httpd-php5 .php AddHandler的X的httpd - php5 。 PHP的
AddHandler x-httpd-php .php .htm html AddHandler的X的httpd - PHP的。 PHP中。热媒的HTML





























January 24th, 2008 at 9:13 pm 08年1月24号在下午9点13分
Thanks for figuring this out.感谢搞清楚了这一点。
One suggestion, I believe you meant “Settings -> DNS Manager†instead of “Settings -> Domain Management†…一个建议,我相信你意味着仙,包括“设置-> ”的D NSM anagerÃ仙,香港特别行政区最大的,而不是仙,包括“设置- >”域名Ma nagementÃ仙,香港特别行政区最大的. . .
Otherwise, excellent information.否则,良好的信息。
Please edit (or delete) this comment after you edit you instructions.请修改(或删除)此评论后,您编辑您的指示。
Thanks again.再次感谢。
March 4th, 2008 at 4:27 am 2008年3月4号在上午04点27
[...] 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://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 2008年3月16日在下午12时34分
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 2008年3月16日在下午12时35分
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 08年3月21日在下午3时09分
When I did this I was able to get my BANS site to work…当我这样做我可以让我的网站,禁止工作...
May 4th, 2008 at 8:52 pm 2008年五月4日在下午8时52分
WOW!哇! Thanks!谢谢! This worked for me with Wordpress!这对我的工作与WordPress的!
May 22nd, 2008 at 2:30 pm 2008年5月22日下午2时30分
hi,嗨,
i tried this too, but it said the subdomain is not valid!我尝试这一点,但它说,子是无效的! :( : (
any clue?任何线索?
July 1st, 2008 at 10:20 pm 2008年7月1日在下午10时20分
This was helpful to me.这是帮助我。 Very strange that setting up a wildcard could fix the mod_rewrite issue, but i’ll take it!非常奇怪的是,成立一个通配符可以修复mod_rewrite的问题,但我要它!
August 27th, 2008 at 12:23 pm 2008年8月27日在下午12点23分
thanks.谢谢。
this was so helpful, i’m putting a link back to you on my site.这是如此有用,我把一个链接回你在我的网站上。
ken县
August 27th, 2008 at 12:25 pm 2008年8月27日在下午12时25分
@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 08年9月28日在下午1时12分
many thanks许多感谢
It works perfect.它完美的。
It is very helpful for many people这是非常有益的许多人
October 26th, 2008 at 6:12 pm 2008年十月26日在下午6点12分
Thanks, this worked like a charm!谢谢,这个工作像一个魅力! Saved me a ton of time messing with .htaccess to no result, much appreciated.救了我一吨的垃圾处理与时间。 htaccess没有结果,备受赞赏。