How I Fixed Drupal Clean URL’s Using GoDaddy Hosting Como eu limpo fixo Drupal URL's usando GoDaddy hospedagem
6,304 views - 6304 visualizaçõesPosted in: Publicado em:
6,304 views 6304 visualizações
Please note: This page was originally written in English. Atenção: Esta página foi originalmente escrito em Inglês.
The original post can be viewed O post original pode ser visualizada here aqui .
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. Eu uso o Wordpress para quase todos os meus sites, mas ainda tenho duas próprio Drupal sites.Ã,  Como já destacado anteriormente, mudei todos os meus sites para GoDaddy no mês passado, e estes dois locais não foram exception.Ã,  Comecei até uma conta premium, e tinha um domínio principal e, em seguida, no seu painel de controle eu mapeados nomes de domínio a-folders.à sub,  Isto é muito útil para mim no ftp, todos os meus sites estão disponíveis para mim no um lugar, separado apenas pela pasta.
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”. Na minha primeira Drupal sites apareceu a funcionar bem quando eu migrou them.Ã,  Contudo, foi somente a casa page.Ã,  Qualquer link que você clicou no servidor apareceu erro - tanto Drupal sites.Ã,  Eu sabia que permitiu GoDaddy Drupal, eles têm um autoinstall disponíveis para ela na Metropolis.Ã,  eu configurei um teste dir e ali instalado usando o Drupal automatizado tool.Ã,  Ela tinha o mesmo problem.Ã,  Agora eu sabia que não era minha site, que era um problem.à GoDaddy,  GoDaddy Liguei para o apoio técnico e eles levantaram um bilhete para a elevação de um avançado tech.Ã,  Eu expliquei o problema para ele e disse-lhe que pensei que tinha algo a ver com a . htaccess servidor de arquivos ou setup.Ã,  Sua resposta foi de que "não se depurar o código".
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). Eu estava indo para responder quando eu descobri que o problema was.Ã,  Minha principal tinha o seu próprio domínio (wordpress). Htaccess file.Â,  Eu pensei que era a primeira a problem.Ã,  Então me lembrei , Quando você tem um anfitrião compartilhado com domínios mapeados para sub-diretórios é instituída com o apache httpd.conf arquivo Creio (codificados). Ã,  Essencialmente, quando um pedido chega no endereço IP para que a partir de um nome de domínio, o servidor web sabe qual pasta para transmiti-la too.Ã, A (sem alguma personalização) não me parece que o servidor web que poderia tratar redirecionar, em cima de um. htaccess reescrever o URL do arquivo para "limpar url's '(Permalinks).
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. Então - longa história curta, se você tiver uma conta de hospedagem GoDaddy, e se você tem vários nomes de domínio (e que você esteja planejando sobre o uso limpo URL's), só poderá fazê-lo a partir da raiz da sua conta (ou domínio principal nome) only.Ã,  fiz corrigir o problema, mas acabei comprando mais duas contas de hospedagem básica ($ 3,99 por mês) para cada domínio, e, em seguida, ambos sites trabalhava na perfeição.
If you have some other fix (or comment) related to hosting Drupal or Wordpress sites at GoDaddy - please comment now below! Se você tiver alguma outra correção (ou comentário) relacionados à hospedagem Drupal Wordpress ou sites de GoDaddy - por favor, comente agora abaixo!



























September 28th, 2007 at 7:18 am 28 de setembro de 2007 às 7:18 am
hi jtpratt! jtpratt oi!
i faced a similar problem. i enfrentou um problema semelhante. But i managed to fix this by creating a new .htaccess file in the (subfolder/root) of my 2nd domain. I mas conseguimos corrigir isso através da criação de uma nova. Htaccess no arquivo (subpasta / raiz) do meu domínio 2o. This is the code for the modified .htaccess file Este é o código para o modificado. Htaccess arquivo
Have fun! Divirta-se! no more dual purchases from godaddy :) não mais dupla de compra GoDaddy:)
AmitG
Email: rapidsynopsis@gmail.com
Website: http://www.rapidsynopsis.com
_________________________________________________
#
# Apache/PHP/Drupal settings: # Apache / PHP / Drupal definições:
#
# Protect files and directories from prying eyes. # Proteja arquivos e diretórios afastados de olhares indiscretos.
Order deny,allow Order deny, permitem
Deny from all Negar a partir de todos os
# Set some options. # Definir algumas opções.
Options -Indexes Opções-Indexes
Options +FollowSymLinks Opções + FollowSymLinks
# Customized error messages. # Customized mensagens de erro.
ErrorDocument 404 /index.php ErrorDocument 404 / index.php
# Set the default handler. # Definir o manipulador padrão.
DirectoryIndex index.php DirectoryIndex index.php
# Override PHP settings. # Override PHP definições. More in sites/default/settings.php Mais em sites / default / settings.php
# but the following cannot be changed at runtime. # Mas o seguinte não pode ser mudada em tempo de execução.
# 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 # 4 PHP, 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 e 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. # Reduzir o tempo páginas dinâmicas estão cache-poder.
ExpiresByType text/html A1 ExpiresByType text / html A1
# Various rewrite rules. # Diversos reescrever as regras.
RewriteEngine on Regravar mecanismo em
# If your site can be accessed both with and without the prefix # Se o seu site pode ser acessado tanto com e sem o prefixo http://www .
# you can use one of the following settings to force user to use only one option: # Você pode usar uma das seguintes configurações de usuário para forçar a usar apenas uma opção:
#
# If you want the site to be accessed WITH the # Se você quiser que o site seja acessado com o http://www . only, adapt and uncomment the following: apenas, adaptar e descomente a seguinte:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] # RewriteCond%) (HTTP_HOST! ^ Www \. Exemplo \. 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 # Se você quiser que o site seja acessado apenas o SEM http://www . , adapt and uncomment the following: , Adaptar e descomente a seguinte:
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC] # RewriteCond%) (HTTP_HOST! ^ Exemplo \. 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 # Modifica o RewriteBase se você estiver usando o Drupal em um subdiretório e
# the rewrite rules are not working properly. # Reescrever as regras não estão funcionando corretamente.
RewriteBase / RewriteBase /
# Rewrite old-style URLs of the form ‘node.php?id=x’. # Rewrite velho estilo de URLs do formulário '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 = node / view /% 1 [L]
# Rewrite old-style URLs of the form ‘module.php?mod=x’. # Rewrite velho estilo de URLs do formulário 'module.php? Mod = x'.
#RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond%) (REQUEST_FILENAME!-F
#RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond%) (REQUEST_FILENAME!-D
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$ # RewriteCond% QUERY_STRING) (^ mod =([^&]+)$
#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 # Rewrite regras de caching página estática fornecida pelo módulo Boost
# BOOST START # BOOST START
AddCharset utf-8 .html AddCharset UTF-8. Html
RewriteCond %{REQUEST_URI} !^/cache RewriteCond%) (REQUEST_URI! ^ / Cache
RewriteCond %{REQUEST_URI} !^/user/login RewriteCond%) (REQUEST_URI! ^ / User / login
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) (/ cache /% (SERVER_NAME) / 0 /% (REQUEST_URI)-d
RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f RewriteCond% DOCUMENT_ROOT) (/ cache /% (SERVER_NAME) / 0 /% (REQUEST_URI) / index.html-f
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L] RewriteRule ^(.*)$ cache /% (SERVER_NAME) / 0 / $ 1/index.html [L]
RewriteCond %{REQUEST_URI} !^/cache RewriteCond%) (REQUEST_URI! ^ / Cache
RewriteCond %{REQUEST_URI} !^/user/login RewriteCond%) (REQUEST_URI! ^ / User / login
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) (/ cache /% (SERVER_NAME) / 0 /% (REQUEST_URI). Html-f
RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L] RewriteRule ^(.*)$ cache /% (SERVER_NAME) / 0 / $ 1.html [L]
# BOOST END # BOOST FIM
# Rewrite current-style URLs of the form ‘index.php?q=x’. # Curso Regrava estilo de URLs do formulário '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, contra 1,4 2006/12/05 10:39:19 $ Arto Exp
_________________________________________________
March 16th, 2008 at 7:37 pm 16 de março, 2008 às 7:37 pm
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. Eu não podia ficar para o código acima. Htaccess para trabalhar, mas usando rewritebase / parece fazer o truque - exceto que agora minhas imagens não são exibidos corretamente.
Anyone know anything about the images bonking up now? Alguém sabe alguma coisa sobre as imagens bonking até agora? They’re put in by FCKeditor in the /files/ directory. Eles são postas em pelo do FCKeditor no / arquivos / diretórios.
March 16th, 2008 at 7:39 pm 16 de março, 2008 às 7:39 pm
Mind you, with just rewritebase / - trying to view the site directly from the original location: Mente-lhe, com apenas rewritebase / - tentando visualizar o site diretamente a partir do local original: http://www.example.com/site1 will pop you back into the “main” godaddy site. pop você vai voltar para o "principal" GoDaddy site. but its reachable by the main URL except for images. mas ao alcance do seu URL principal exceto para as imagens. :/ : /
August 17th, 2008 at 2:48 pm 17 de agosto, 2008 em 2:48 pm
Ugh, I wish I had seen this tip before I uninstalled Drupal and put Wordpress on my new site. Ugh, eu gostaria de ter visto esta dica antes de eu desinstalado Drupal e Wordpress colocar no meu novo site.
Beside the clean url issue, I was also having real trouble setting up a drupal forum. Ao lado do limpa url problema, eu também estava tendo problemas para a criação de um verdadeiro fórum drupal. Do you know of any good tutorial sites for drupal? Você sabe de algum bom tutorial para sites drupal?
Dana Vienass last blog post.. Dana Vienass última postagem no blog .. The Whole Truth About Diet Pills Toda a verdade acerca pílulas dietéticas
August 17th, 2008 at 2:59 pm 17 de agosto, 2008 em 2:59 pm
@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. @ Dana - Eu não, não, eu Drupal utilizados exclusivamente em todos os meus sites para 2 anos e depois mudou-los todos ao longo de Wordpress por esse mesmo motivo. Compare to Wordpress, there are only (maybe) 5-10% as much themes, plugins, and support for Drupal. Comparar com Wordpress, só há (talvez) 5-10%, tanto temas, plugins, e apoio para Drupal. I hate Drupal - I will never go back… Odeio Drupal - Eu nunca vou voltar ...
October 1st, 2008 at 8:14 am 1 de Outubro de 2008 às 8:14 am
@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. @ Dana - Se você ainda tiver um monte de problemas com o Drupal fóruns e não têm presa ao Wordpress Teremos prazer em ajudá-lo.