Wp Affiliate Pro - The #1 Plugin For WordPress Blogs РГ Партнерская PRO - # 1 плагин для блогов Wordpress
Powered by MaxBlogPress Powered путем MaxBlogPress

Как я фиксированных Drupal чистой URL в использовании GoDaddy Хостинг | JTPRATT в блоге ошибок
JTPratt в блоге ошибок





Home Домой » How I Fixed Drupal Clean URL’s Using GoDaddy Hosting »Как я фиксированных Drupal чистой URL в использовании GoDaddy хостинг



Posted in: Опубликовано в:

Блог-Setup категории изображениеDrupal категории изображениевеб-хостинг категорию изображений
6,311 views 6311 просмотров


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, они autoinstall доступны для него в Metropolis.Ã, А Я Setup испытания реже и установили там Drupal с использованием автоматизированных tool.à года он же problem.Ã, теперь я знал, что это не мое сайт, он был 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.Ã, "Мой основной домен был его собственный (Wordpress). Htaccess file.à года я думал вначале, что было problem.Ã, в то я вспомнил , Когда у вас есть общие пребывания с доменами подключенного к югу от директории его настройке Apache httpd.conf файл Я считаю (жестко). А в основном, когда запрос поступает в том, что IP-адрес от имени домена, веб-сервер, который знает, папки направить его too.Ã, A (без настройки) Я не думаю, что веб-сервер может обрабатывать, что переадресация на вершине. htaccess файл переписывания 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's), вы можете сделать это только из корневой учетной записи (или основной домен наименование) only.à года я сделал исправить эту проблему, но в конечном итоге покупка двух дополнительных базовых хостинг счетов ($ 3.99 в месяц) для каждого домена, а затем оба сайта работали безупречно.

If you have some other fix (or comment) related to hosting Drupal or Wordpress sites at GoDaddy - please comment now below! Если у вас есть некоторые другие исправления (или замечание), связанные с хостингом Wordpress или Drupal сайтов на GoDaddy - Просьба прокомментировать сейчас ниже!


6 Responses to “How I Fixed Drupal Clean URL’s Using GoDaddy Hosting” 6 Ответы на "Как я Фиксированная Drupal чистого URL использует GoDaddy Хостинг"

  1. AmitG AmitG Has the following to say... Имеет следующие сказать ...

    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 php_value magic_quotes_gpc 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 php_value magic_quotes_gpc 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 php_value magic_quotes_gpc 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: # Вы можете использовать один из следующих параметров, чтобы заставить пользователя использовать только один вариант:
    #
    # 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 \. Примере \. COM $ [NC]
    # 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)! ^ Пример \. COM $ [NC]
    # RewriteRule .* # RewriteRule .* http://example.com/ [L,R=301] [L, R = 301]

    # Modify the RewriteBase if you are using Drupal in a subdirectory and # Изменить RewriteBase если вы используете Drupal в подкаталог и
    # the rewrite rules are not working properly. # Переписать правила не работают должным образом.
    RewriteBase / RewriteBase /

    # Rewrite old-style URLs of the form ‘node.php?id=x’. # Перезаписи старого стиля адреса вида "node.php? ID = X".
    #RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond% (REQUEST_FILENAME)!-F
    #RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond% (REQUEST_FILENAME)!-D
    #RewriteCond %{QUERY_STRING} ^id=([^&]+)$ # RewriteCond% (QUERY_STRING) ^ ID =([^&]+)$
    #RewriteRule node.php index.php?q=node/view/%1 [L] # RewriteRule node.php index.php? Q = узла / View /% 1 [L]

    # 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 [L]

    # Rewrite rules for static page caching provided by the Boost module # Перезаписи правил для статических страниц кэширование, представленная Boost модуль
    # 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)! ^ / Admin
    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 [L]
    RewriteCond %{REQUEST_URI} !^/cache RewriteCond% (REQUEST_URI)! ^ / Кэш
    RewriteCond %{REQUEST_URI} !^/user/login RewriteCond% (REQUEST_URI)! ^ / Пользователя / логин
    RewriteCond %{REQUEST_URI} !^/admin RewriteCond% (REQUEST_URI)! ^ / Admin
    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 [L]
    # BOOST END # 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 [L, 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 Арто Exp $
    _________________________________________________

  2. krikette krikette Has the following to say... Имеет следующие сказать ...

    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 в / файлов / каталогов.

    =) R

  3. krikette krikette Has the following to say... Имеет следующие сказать ...

    Mind you, with just rewritebase / - trying to view the site directly from the original location: Mind вами, только с 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 за исключением изображений. :/ : /

  4. Dana Vienas Дана Vienas Has the following to say... Имеет следующие сказать ...

    Ugh, I wish I had seen this tip before I uninstalled Drupal and put Wordpress on my new site. Ugh, я хочу я видел эту тему, прежде чем я удалил 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 Вся правда о диете таблетки

  5. admin Admin Has the following to say... Имеет следующие сказать ...

    @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 - Я никогда не вернуться ...

  6. Krikette Krikette Has the following to say... Имеет следующие сказать ...

    @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 я будем рады помочь Вам.

Question or Comment?? Вопрос или комментарий?? Spill it Now... Разлив он сейчас ...

Джампинг от радости за комментарии!

We Reward Comments! Мы замечания награду!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Мы dofollow связей, и получите ваш последний блоге, как byline под каждым новым комментарием от "CommentLuv" плагин! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! Топ комментаторы за каждый месяц, приводятся на каждой странице этого сайта в боковой панели виджетов связана с вашей URL! We would like to reward you for becoming part of our community! Мы хотели бы вознаградить Вас стать частью нашего сообщества! Your comment is valuable not only to us, but also all the other readers of this blog! Ваше замечание ценно не только для нас, но и все другие читатели этого блога!


Click to add smilies to your post! Нажмите, чтобы добавить смайлы на ваш пост! == []^ = (= ((= (|=) R= | 8= 0=) ~= 00= (=;;=)]=;;;