How to fix .htaccess file for mod_rewrite and addhandler on godaddy subdomainどのように修正する。 mod_rewriteを、サブドメインにaddhandlerのためのGoDaddy htaccessファイル
5,586 views - 5586ビュー-著 でPosted in: の投稿:
5,586 views 5586ビュー
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 (ただし限定されない)ワードプレス、はDrupal 、 BBPress 、 Moodleとは、検索オプション、 PHPNuke 、 Postnuke 、もっと!
Short list of potential issues:潜在的な問題点のショートリスト:
- problems with permalinks in Wordpressワードプレスのパーマリンクの問題
- problems with clean URL’s in Drupalの問題をクリーンURLのはDrupalの
- problems with pretty url’s in BBPressの問題でかなりのURLのBBPress
- problems with Wordpress MUワードプレスMUの問題
- 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.私は2つの問題に時間をもう一度と、時間と苦労があるの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.もし私がドメインの管理"になる->割り当てるドメイン"と"地図"は、ルートのU RLをフォルダには、ドメイン、私は、どのサイトが必要な" 。 h taccessファイルを使用するように書き換える"は、 U RLの1を使用することで問題を抱えている機能" 、 mod_rewriteを"と呼ばれる-特にW ordpressとはD rupal。
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アドレスを" @ " 2番目のフィールドを入力します。 Leave the drop down at one hour. 1時間で、ドロップダウンのままにします。 Click “ok” to save. " OK "をクリック保存します。
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.私も問題が私を取得しようとしていたよ。または。 htmファイルのHTMLを解析する場合は、 PHPコードのGoDaddy 。 phpファイル、あるいは、 PHP5を使用するようにしていたアプリケーションとした。 That fix is also really, really easy.その修正は本当に、本当に簡単です。 All you have to do is create an .htaccess file with the following 2 lines:すべての場合は、次の2行を持つ。 htaccessファイルを作成するだけです:
AddHandler x-httpd-php5 .php AddHandlerのX - httpdはPHP5の。 phpの
AddHandler x-httpd-php .php .htm html AddHandlerのX -のhttpd - phpの。 phpの。 htmファイルのHTML


























January 24th, 2008 at 9:13 pm 2008年1月24日の午後9時13分
Thanks for figuring this out.これを把握していただきありがとうございます。
One suggestion, I believe you meant “Settings -> DNS Manager†instead of “Settings -> Domain Management†… 1つの提案を、私はあなたの設定à ¢ â 、 ¬ "ではなく、 ¢ â 、 ¬は、 "設定-> D NSのM 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 3月4日、 2008年で、午前4: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 2008年3月21日3:09 pmに
When I did this I was able to get my BANS site to work…私はこのとき私は自分の禁止サイトを動作させることができることになったのだ...
May 4th, 2008 at 8:52 pm 2008年5月4日の午前3:52
WOW!ワウ! Thanks!ありがとう! This worked for me with Wordpress!これは私にとってWordpressのと一緒に仕事!
May 22nd, 2008 at 2:30 pm 2008年5月22日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 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 2008年9月28日の午後1時12分
many thanksおつかれ
It works perfect.それはうまく動作します。
It is very helpful for many peopleそれは非常に多くの人々の助けになります
October 26th, 2008 at 6:12 pm 2008年10月26日6:12 pmに
Thanks, this worked like a charm!おかげで、これは魔法のように仕事を! Saved me a ton of time messing with .htaccess to no result, much appreciated.私の時間をトンに保存されることなしに結果をhtaccessを、ずっと感謝しています。