How I Fixed Drupal Clean URL’s Using GoDaddy Hosting 어떻게 깨끗한 Drupal URL의 호스팅을 사용하여 고정 GoDaddy
5,559 views - 5559 조회 - 에Posted in: 에 게시됨 :
5,559 views 5559 조회
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. 나는 내 웹 사이트에 대한 거의 모든 Wordpress를 사용하지만, 내가 이전에 게시한 난 아직도 두 Drupal sites.Ã, 자기, 내가 GoDaddy로 지난 달 이내에, 그리고이 두 사이트 모두 내 사이트에 옮겨 exception.à 아니,됐다 나는 프리미엄 계정을 시작하고 기본 도메인을 갖고 있었는데, 그때 그들의 컨트롤 패널에 난 - folders.à 하위 도메인 이름으로 매핑, 이건 정말 나를 위해 ftp로에 편리하고, 내 모든 웹 사이트에서 사용할 수있는 날 한 장소, 폴더에만으로 구분했다.
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.Ã, 어떤 링크를 클릭했습니다 서버 오류를 온 - 둘 Drupal sites.Ã, 내가 아는 한 GoDaddy 허용 Drupal, 그들이 그것에 대한 Metropolis.Ã에 해당하는, autoinstall이 설치되어 있고 난 거기에 tool.Ã를 사용하여 자동화된 테스트에 dir Drupal 설치, 그것은 똑같은 problem.Ã, 지금은 그게 아니라는 걸 알고 있었기 A는 내 사이트, 그것은 GoDaddy problem.Ã, 제가 전화를 걸어 기술 지원 GoDaddy들은 고급 tech.Ã하는 고가 티켓을 제기, 그 사람에게 문제를 설명하고 내가 함께 할 수있는 뭔가 줄 알았다고 . 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.Ã, 그럼 내가 기억하고 있던 생각 , () 하드코드된하면 도메인의 하위 디렉터리에 매핑 - 그것의 설치와 아파치 httpd.conf에서 믿을 파일 공유 호스트가.업자 A 본질적으로, 그 때 요청에 도메인 이름을 IP 주소로 오면, 웹 서버 폴더, 일부 사용자 정의 ()이 없으면 난 웹 서버 리디렉션 처리할 수 있다고 생각하지 않습니다,. 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. 그래서 - 길고도 짧은 이야기하면, 그리고 GoDaddy 호스팅 계정이 여러 개있는 경우 도메인 이름을 가지고, (그리고 당신의 결백을 URL의), 당신은 귀하의 계정의 루트에서 할 수를 사용하여 (또는 기본 도메인을 계획하고있어 이름) only.Ã, 내가이 문제를 해결 했지,하지만 두 가지 추가 기본 호스팅 계정 ($ 3.99 매월) 각 도메인에 대한 구매 끝난 다음 두 사이트 모두 완벽하게 일했다.
If you have some other fix (or comment) related to hosting Drupal or Wordpress sites at GoDaddy - please comment now below! 다른 고치면 (또는 코멘트) Drupal 또는 GoDaddy에서 Wordpress 사이트를 호스팅 관련 - 지금은 아래에 언급하시기 바랍니다!
























September 28th, 2007 at 7:18 am 9 월 28 일 2007 오전 7:18
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: # 아파치 / 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에서, 아파치 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에서, 아파치 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에서, 아파치 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 text / html과 대답
# 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: # 당신은 사용자가 강제로 단 한 옵션을 사용하는 방법은 다음 설정 중 하나를 사용할 수있습니다 :
#
# 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.kr에서 $ [노스캐롤라이나]
# RewriteRule .* # RewriteRule .* http://www.example.com/ [L,R=301] [패 공화 = 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.kr에서 $ [노스캐롤라이나]
# RewriteRule .* # RewriteRule .* http://example.com/ [L,R=301] [패 공화 = 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 양식 '의 오랜 - 스타일을 재작 성 #? 아이디 = 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?에서 q = 노드 /보기 / % 1 [패]
# Rewrite old-style URLs of the form ‘module.php?mod=x’. module.php 양식 '의 오랜 - 스타일을 재작 성 #? 침해 = 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?에서 q = % 1 [패]
# 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 변수) / 캐시 / % (SERVER_NAME) / 0 / % (REQUEST_URI) - d 개
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f RewriteCond % (DOCUMENT_ROOT 변수) / 캐시 / % (SERVER_NAME) / 0 / % (REQUEST_URI) / index.html에 - f 옵션
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L] RewriteRule ^(.*)$ 캐시 / % (SERVER_NAME) / 0 / $ 1/index.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}.html -f RewriteCond % (DOCUMENT_ROOT 변수) / 캐시 / % (SERVER_NAME) / 0 / % (REQUEST_URI). html로 - f를
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L] RewriteRule ^(.*)$ 캐시 / % (SERVER_NAME) / 0 / $ 1.html [패]
# BOOST END # BOOST 끝
# Rewrite current-style URLs of the form ‘index.php?q=x’. index.php의 양식 '의 전류 - 스타일을 재작 성 #?에서 q = 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?에서 q = $ 1 [패, QSA]
# $Id: boosted.txt,v 1.4 2006/12/05 10:39:19 arto Exp $ # $ ID가 : $ 특급 boosted.txt, v를 1.4 2006/12/05 10시 39분 19초 arto
_________________________________________________ ___________________________________________________
March 16th, 2008 at 7:37 pm 2008년 3월 16일에서 오후 7시 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. "main"에 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. @ 데이나 - 그럴 순 없다, 나는 Drupal 2 년 동안 내 모든 사이트에 독점적으로 사용에 다음 모든 Wordpress를 넘어 근본적인 이유는 그들이 바뀌었다. Compare to Wordpress, there are only (maybe) 5-10% as much themes, plugins, and support for Drupal. WordPress의 비교 밖에 많은 테마, 플러그인으로 (아마도) 5-10 %, 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. @ 데이나 - 만약 당신이 아직도 Drupal 포럼과 함께 많은 문제가있어 Wordpress를 제가 도와 드리겠 꼼짝하지 않았습니다.