How I Fixed Drupal Clean URL’s Using GoDaddy HostingどうすればきれいにはDrupalのGoDaddyのURLのホストを使用して固定
5,486 views - 5486ビュー-著 でPosted in: の投稿:
5,486 views 5486ビュー
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 use Wordpress for nearly all of my web sites, but I still own two Drupal sites. As I posted previously, I moved all my sites to GoDaddy within the last month, and these two sites were no exception. I started up a premium account, and had a main domain, and then in their control panel I mapped domain names to sub-folders. This is very handy for me in ftp, all of my web sites are available to me in one place, separated only by folder.私はほぼすべてのWebサイトのためのWordpressの使用が、私は、以前掲載した私はまだ二sites.ÃはDrupalは、自身の、私のGoDaddyへの最後の1カ月以内に、すべての私のサイトに移動これらの2つのサイトはexception.à 、れた私は、プレミアムアカウントを開始し、メインのドメインをしていたにコピーし、コントロールパネルで私はサブドメイン名の割り当てfolders.Ãに、これは非常に便利です、私のためにFTPでは、すべて私のメインのウェブサイトのためにご利用いただけます1つの場所、フォルダのみで区切ら。
At first my Drupal sites appeared to work fine when I migrated them. However, it was only the home page. Any link you clicked on came up server error - both Drupal sites. I knew GoDaddy allowed Drupal, they have an autoinstall available for it in Metropolis. I setup a test dir and installed Drupal there using the automated tool. It had the same problem. Now I knew that it wasn’t my site, it was a GoDaddy problem. I called GoDaddy tech support and they raised an elevated ticket to the an advanced tech. I explained the problem to him, and told him I thought it had something to do with the .htaccess files or server setup. His response was that they “don’t debug code”.私はDrupalのサイトでの最初の仕事に罰金them.Ãときに、しかし、移行され、それだけで家庭page.Ãすると、すべてのリンクをクリックされたサーバーエラーをした-の両方はD rupals ites.Ã、私は知っていたのG oDaddy許可ÂはDrupal 、彼らはそれをMetropolis.Ãで利用可能な、自動インストールが自動化さtool.Ã私はDrupalを使用して、テストディレクトリの設定は、これは、同じproblem.Ãていたが、今ではないことを知っていた私は、 Aはしている私のサイトは、 problem.ÃのGoDaddyは、技術サポートに電話をかけていた私のGoDaddyは、先進tech.Ãへの昇格の切符を調達、私は彼にこの問題を説明し、 Aと私はそれで何かすることを考えていた彼に言われた。 htaccessをファイルまたはサーバーsetup.à 、彼の応答は、 " "コードのデバッグはありませんでした。
I was going to respond when I figured out what the problem was. My main domain had it’s own (wordpress) .htaccess file. I thought at first that was the problem. Then I remembered, when you have a shared host with domains mapped to sub-directories it’s setup in the apache httpd.conf file I believe (hardcoded). Essentially, when a request comes in to that IP address from a domain name, the web server knows which folder to forward it too. (Without some customization) I don’t think the web server could handle that redirect, on top of an .htaccess file rewriting the URL’s to ‘clean url’s’ (permalinks).私はこの問題を考え出したwas.à 、私のメインのドメインは(ワードプレス)を独自のものが対応していた。 htaccessをfile.à 、私は最初は、 problem.à 、それから記憶された思考 、 ( )のサブドメインをハードコードするときにマップするディレクトリは、 Apacheの設定ファイルhttpd.confにと私は信じ共有ホストしている。 à 、基本的に、ときにリクエストでは、ドメイン名からIPアドレスになると、は、 Webサーバーのフォルダを、いくつかのカスタマイズ( )がなければ私は、 Webサーバーは、リダイレクト処理する可能性があるとは思わないが、 。 htaccessファイルの書き換えの上に転送することを知っているtoo.Ãこれは、 URLの'にきれいなURLを' (パーマリンク) 。
So - long story short, IF you have an GoDaddy hosting account, and IF you have multiple domain names (and you’re planning on using clean URL’s), you can only do it from the root of your account (or main domain name) only. I did fix the problem, but ended up buying two additional basic hosting accounts ($3.99 per month) for each domain, and then both sites worked flawlessly.だから-長い話を短くする場合は、ホストとのG oDaddyアカウントをお持ちの場合、複数のドメイン名が、 (クリーンU RLの場合) 、あなたはアカウントのルートからそれを行うことができますを使用して(または、メインのドメインを計画している名) only.à 、私は問題を解決した、が、さらに2つの基本的なホストアカウント(月額3.99ドル)は、各ドメインに対して、買いが終了し、両方のサイト完ぺきに働いた。
If you have some other fix (or comment) related to hosting Drupal or Wordpress sites at GoDaddy - please comment now below!いくつかの修正がある場合は、他の(またはコメント)のGoDaddyではDrupalやWordpressのサイトをホストに関連する-今すぐ下のコメントをしてください!




















September 28th, 2007 at 7:18 am 9月、 2007年7時18で28日午前
hi jtpratt!ハワイjtpratt !
i faced a similar problem.私は同様の問題に直面した。 But i managed to fix this by creating a new .htaccess file in the (subfolder/root) of my 2nd domain.しかし、私は(サブフォルダに新しい。 htaccessファイル/ルートを作成することで)私の第2回ドメインのこの修正に成功した。 This is the code for the modified .htaccess fileこれは、変更された。 htaccessファイルのためのコードです
Have fun!楽しんでおいで! no more dual purchases from godaddy :)他の二重のGoDaddyから購入: )
AmitG
Email:電子メール: rapidsynopsis@gmail.com
Website:ウェブサイト: http://www.rapidsynopsis.com
_________________________________________________
# #
# Apache/PHP/Drupal settings: #のApache / PHPの/はDrupalの設定:
# #
# Protect files and directories from prying eyes.せんさく好きな目からのファイルとディレクトリの保護# 。
Order deny,allow注文は、許可を否定する
Deny from allすべてを否定するから
# Set some options.いくつかのオプションを設定# 。
Options -Indexesオプションインデックス
Options +FollowSymLinksオプション+ FollowSymLinks
# Customized error messages. #カスタマイズのエラーメッセージ。
ErrorDocument 404 /index.php ErrorDocument 404 / index.phpを
# Set the default handler.デフォルトのハンドラを設定します# 。
DirectoryIndex index.php DirectoryIndex index.phpを
# Override PHP settings. PHPの設定を上書き# 。 More in sites/default/settings.phpサイトをもっと/デフォルト/ settings.php
# but the following cannot be changed at runtime. #は、次の実行時に変更することはできません。
# PHP 4, Apache 1 # PHP 4では、 Apacheの1
php_value magic_quotes_gpc 0 magic_quotes_gpcのphp_value 0
php_value register_globals 0 php_value register_globalsが0
php_value session.auto_start 0 php_value session.auto_startは0
# PHP 4, Apache 2 # PHP 4では、 Apacheの2
php_value magic_quotes_gpc 0 magic_quotes_gpcのphp_value 0
php_value register_globals 0 php_value register_globalsが0
php_value session.auto_start 0 php_value session.auto_startは0
# PHP 5, Apache 1 and 2 # PHP 5では、 Apacheの1と2
php_value magic_quotes_gpc 0 magic_quotes_gpcのphp_value 0
php_value register_globals 0 php_value register_globalsが0
php_value session.auto_start 0 php_value session.auto_startは0
# Reduce the time dynamically generated pages are cache-able.時間を動的に生成されるページをキャッシュできるようになりますリデュース# 。
ExpiresByType text/html A1 ExpiresByTypeテキスト/ HTMLのa1固定
# Various rewrite rules. #様々なルールを書き換える。
RewriteEngine on RewriteEngineに
# If your site can be accessed both with and without the prefix #もしあなたのサイトの両方で、接頭辞なしでアクセスすることができます http://www . 。
# you can use one of the following settings to force user to use only one option: #あなたのユーザを強制的には1つだけオプションを使用するように、次のいずれかの設定を使用することができます:
# #
# If you want the site to be accessed WITH the必要に応じて#は、サイトでアクセスすることに http://www . 。 only, adapt and uncomment the following:のみで、適応し、次のコメントを解除:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] # RewriteCondを% ( HTTP_HOST ) ! ^にwww \ 。例: \ 。 co.jpで$ [ノースカロライナ]
# RewriteRule .* # RewriteRule .* http://www.example.com/ [L,R=301] 【 Lは、 R = 301 ]
# #
# If you want the site to be accessed only WITHOUT the #場合は、サイトにのみアクセスすることなくしたい http://www . 。 , adapt and uncomment the following: 、適応し、次のコメントを解除:
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC] # RewriteCondを% ( HTTP_HOST ) ! ^例\ 。 co.jpで$ [ノースカロライナ]
# RewriteRule .* # RewriteRule .* http://example.com/ [L,R=301] 【 Lは、 R = 301 ]
# Modify the RewriteBase if you are using Drupal in a subdirectory and場合はサブディレクトリとはDrupalを使用しているのRewriteBaseを変更#
# the rewrite rules are not working properly. #は、ルールを書き換える正常に動作していない。
RewriteBase / RewriteBase /
# Rewrite old-style URLs of the form ‘node.php?id=x’. node.phpのフォーム'の古い形式のURLを書き直す# ?アイダホ= x 'を。
#RewriteCond %{REQUEST_FILENAME} !-f # RewriteCondを% ( REQUEST_FILENAME ) ! - fを
#RewriteCond %{REQUEST_FILENAME} !-d # RewriteCondを% ( REQUEST_FILENAME ) ! - dの
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$ # RewriteCondを% ( QUERY_STRING ) ^ =([^&]+)$アイダホ
#RewriteRule node.php index.php?q=node/view/%1 [L] # RewriteRule node.php index.phpを?問=ノード/眺望/ % 1量[ L ]
# Rewrite old-style URLs of the form ‘module.php?mod=x’. module.phpのフォーム'の古い形式のURLを書き直す# ?流行の最先端を行く= x 'を。
#RewriteCond %{REQUEST_FILENAME} !-f # RewriteCondを% ( REQUEST_FILENAME ) ! - fを
#RewriteCond %{REQUEST_FILENAME} !-d # RewriteCondを% ( REQUEST_FILENAME ) ! - dの
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$ # RewriteCondを% ( QUERY_STRING ) ^ =([^&]+)$流行の最先端を行く
#RewriteRule module.php index.php?q=%1 [L] # RewriteRule module.php index.phpを?問= % 1量[ L ]
# Rewrite rules for static page caching provided by the Boost module静的なページでは、モジュールのブーストが提供するキャッシュの#書き換えルール
# BOOST START # BOOSTスタート
AddCharset utf-8 .html AddCharset UTF - 8のは。 html
RewriteCond %{REQUEST_URI} !^/cache RewriteCondを% ( REQUEST_URI ) ! ^ /キャッシュ
RewriteCond %{REQUEST_URI} !^/user/login RewriteCondを% ( REQUEST_URI ) ! ^ /ユーザー/ログイン
RewriteCond %{REQUEST_URI} !^/admin RewriteCondを% ( REQUEST_URI ) ! ^ /管理者
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCondを% ( HTTP_COOKIE ) ! DRUPAL_UID
RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCondを% ( REQUEST_METHOD ) ^ $のGET
RewriteCond %{QUERY_STRING} ^$ RewriteCondを% ( QUERY_STRING ) ^ $
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI} -d RewriteCondを% ( DOCUMENT_ROOTは) /キャッシュ/ % (サーバー) / 0 / % ( REQUEST_URI ) - dの
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f RewriteCondを% ( DOCUMENT_ROOTは) /キャッシュ/ % (サーバー) / 0 / % ( REQUEST_URI ) / index.htmlを- fを
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L] RewriteRule ^(.*)$キャッシュ/ % (サーバー) / 0 / $ 1/index.html量[ L ]
RewriteCond %{REQUEST_URI} !^/cache RewriteCondを% ( REQUEST_URI ) ! ^ /キャッシュ
RewriteCond %{REQUEST_URI} !^/user/login RewriteCondを% ( REQUEST_URI ) ! ^ /ユーザー/ログイン
RewriteCond %{REQUEST_URI} !^/admin RewriteCondを% ( REQUEST_URI ) ! ^ /管理者
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCondを% ( HTTP_COOKIE ) ! DRUPAL_UID
RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCondを% ( REQUEST_METHOD ) ^ $のGET
RewriteCond %{QUERY_STRING} ^$ RewriteCondを% ( QUERY_STRING ) ^ $
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}.html -f RewriteCondを% ( DOCUMENT_ROOTは) /キャッシュ/ % (サーバー) / 0 / % ( REQUEST_URI )は。 html - fを
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L] RewriteRule ^(.*)$キャッシュ/ % (サーバー) / 0 / $ 1.html量[ L ]
# BOOST END # BOOSTエンド
# Rewrite current-style URLs of the form ‘index.php?q=x’. index.phpを、フォームの現在のスタイルのURLを書き直す# ?問= x 'を。
RewriteCond %{REQUEST_FILENAME} !-f RewriteCondを% ( REQUEST_FILENAME ) ! - fを
RewriteCond %{REQUEST_FILENAME} !-d RewriteCondを% ( REQUEST_FILENAME ) ! - dの
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] RewriteRule ^(.*)$ index.phpを?問= $ 1 [ LのQSA ]
# $Id: boosted.txt,v 1.4 2006/12/05 10:39:19 arto Exp $ # $ ] : $輸出boosted.txt 、 Vの1.4 2006/12/05午前10時39分19秒arto
_________________________________________________
March 16th, 2008 at 7:37 pm 2008年3月16日の午前2:37
I couldn’t get the code above for .htaccess to work, but using rewritebase / seems to do the trick — except that now my images don’t show correctly.私は上記のコードを取得できませんでした。 htaccessを仕事には、を使用してrewritebase /トリックを行うようだ-ということ以外は、現在私の画像が正しく表示されません。
Anyone know anything about the images bonking up now?誰も今までの画像bonkingについては何も知っているか? They’re put in by FCKeditor in the /files/ directory.彼らのFCKeditorでは、 /ファイルに入れている/ディレクトリにあります。
March 16th, 2008 at 7:39 pm 2008年3月16日の午後7時39分
Mind you, with just rewritebase / - trying to view the site directly from the original location:をおマインドだけ/ rewritebase -元の場所からサイトを直接表示しようとしている: http://www.example.com/site1 will pop you back into the “main” godaddy site. "メイン"のGoDaddyサイトに戻りますポップされます。 but its reachable by the main URL except for images.画像を除いて、メインURLが、到達した。 :/ : /
August 17th, 2008 at 2:48 pm 2008年8月17日の午後2:48
Ugh, I wish I had seen this tip before I uninstalled Drupal and put Wordpress on my new site.うーん、私はDrupalをアンインストールする前に、私と私の新しいサイトでWordpressのを見ていた私はこのチップをお祈りします。
Beside the clean url issue, I was also having real trouble setting up a drupal forum.クリーンURLの問題の他にも実際のトラブルにはDrupalのフォーラムを設定して、私だった。 Do you know of any good tutorial sites for drupal?あなたはDrupalも良いのチュートリアルサイトの知っていますか?
Dana Vienass last blog post..ダナVienass最後のブログの記事.. The Whole Truth About Diet Pillsありのままダイエット薬について
August 17th, 2008 at 2:59 pm 2008年8月17日の午後2時59分
@Dana - no I don’t, I used Drupal exclusively on all my sites for 2 years and then changed them all over to Wordpress for that very reason. @ダナ-はない私は、私はD rupal2年間のすべての私のサイトを排他的に使用してすべてのW ordpressのには、非常に理由を変更した。 Compare to Wordpress, there are only (maybe) 5-10% as much themes, plugins, and support for Drupal.ワードプレスに比較すると、そこだけ多くのテーマ、プラグインとして(たぶん)五から十パーセントとはDrupalをサポートしています。 I hate Drupal - I will never go back…私はDrupal嫌いだ-私は、前に戻ってすることは決してありません. ..
October 1st, 2008 at 8:14 am 2008年10月1日午前8時14時
@Dana - If you’re still having a lot of problems with the Drupal forums and haven’t stuck to Wordpress I’d be happy to help you. @ダナ-場合は、フォーラムではD rupalの問題の多くが発生しているW ordpressのを手伝ってさせていただきます立ち往生していない。