Onbeperkte $1.99 domeinnamen - wij gebruiken goDaddy
Aangedreven door MaxBlogPress

Hoe ik het Gebruikende Ontvangen GoDaddy van Drupal Schone URL bevestigde | De Fouten Blogging van JTPRATT
De Fouten van Blogging van JTPratt


Huis “ Hoe ik het Gebruikende Ontvangen GoDaddy van Drupal Schone URL bevestigde



Gepost in:

het beeld van de blog-opstellingscategorie drupal categoriebeeld Web-ontvangende categoriebeeld
3.895 meningen


Gelieve van nota te nemen: Deze pagina werd oorspronkelijk geschreven in het Engels.

De originele post kan worden bekeken hier.

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.


Ik gebruik Wordpress voor bijna elk van mijn websites, maar ik bezit nog twee plaatsen Drupal. à ‚   Aangezien ik eerder postte, verplaatste ik al mijn plaatsen naar GoDaddy binnen vorige maand, en deze twee plaatsen waren geen uitzondering. à ‚   Ik startte een premierekening op, en had een hoofddomein, en dan in hun controlepaneel bracht ik domeinnamen aan sub-omslagen in kaart. à ‚   Dit is zeer handig voor me in FTP, zijn elk van mijn websites beschikbaar aan me in één plaats, die slechts door omslag wordt gescheiden.

Eerst schenen mijn plaatsen Drupal om boete te werken toen ik hen migreerde. à ‚   Nochtans, was het slechts de homepage. à ‚   Om het even welke verbinding u klikte op kwam op serverfout - beide plaatsen Drupal. à ‚   Ik kende GoDaddy toegestane Drupal, hebben zij een autoinstall beschikbaar voor het in Metropolis.à ‚   I opstelling een test dir en geïnstalleerdee Drupal die daar het geautomatiseerde hulpmiddel met behulp van. à ‚   Het had het zelfde probleem. à ‚   Nu wist ik dat het niet mijn plaats was, was het een probleem GoDaddy. à ‚   Ik riep GoDaddy technologiesteun en zij hieven een opgeheven kaartje aan geavanceerde technologie op. à ‚   Ik verklaarde het probleem aan hem, en vertelde hem I dacht het iets had met de.htaccess- dossiers of serveropstelling te doen. à ‚   Zijn reactie was dat zij „geen code“ zuiveren.

Ik ging antwoorden toen ik berekende wat het probleem was. à ‚   Mijn hoofddomein had het is eigen (wordpress).htaccess- dossier. à ‚   Ik dacht eerst die het probleem was. à ‚   Dan herinnerde ik me, wanneer u een gedeelde gastheer met domeinen hebt die aan sub-directories in kaart worden gebracht het opstelling in het apachehttpd.conf- dossier is dat ik (hardcoded) heb geloofd. à ‚   Hoofdzakelijk, wanneer een verzoek binnen aan dat IP adres uit een domeinnaam komt, kent de Webserver welke omslag om het ook door:sturen. à ‚   (Zonder wat aanpassing) ik denk niet de Webserver dat opnieuw richt, bovenop een.htaccess- dossier kon behandelen herschrijvend URL aan schone url `' (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.

If you have some other fix (or comment) related to hosting Drupal or Wordpress sites at GoDaddy - please comment now below!


3 Responses to “How I Fixed Drupal Clean URL’s Using GoDaddy Hosting”

  1. AmitG Has the following to say...

    hi 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. This is the code for the modified .htaccess file

    Have fun! no more dual purchases from godaddy :)
    AmitG
    Email: rapidsynopsis@gmail.com
    Website: http://www.rapidsynopsis.com
    _________________________________________________

    #
    # Apache/PHP/Drupal settings:
    #

    # Protect files and directories from prying eyes.

    Order deny,allow
    Deny from all

    # Set some options.
    Options -Indexes
    Options +FollowSymLinks

    # Customized error messages.
    ErrorDocument 404 /index.php

    # Set the default handler.
    DirectoryIndex index.php

    # Override PHP settings. More in sites/default/settings.php
    # but the following cannot be changed at runtime.

    # PHP 4, Apache 1

    php_value magic_quotes_gpc 0
    php_value register_globals 0
    php_value session.auto_start 0

    # PHP 4, Apache 2

    php_value magic_quotes_gpc 0
    php_value register_globals 0
    php_value session.auto_start 0

    # PHP 5, Apache 1 and 2

    php_value magic_quotes_gpc 0
    php_value register_globals 0
    php_value session.auto_start 0

    # Reduce the time dynamically generated pages are cache-able.

    ExpiresByType text/html A1

    # Various rewrite rules.

    RewriteEngine on

    # 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]
    # RewriteRule .* http://www.example.com/ [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]
    # RewriteRule .* http://example.com/ [L,R=301]

    # Modify the RewriteBase if you are using Drupal in a subdirectory and
    # the rewrite rules are not working properly.
    RewriteBase /

    # Rewrite old-style URLs of the form ‘node.php?id=x’.
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
    #RewriteRule node.php index.php?q=node/view/%1 [L]

    # Rewrite old-style URLs of the form ‘module.php?mod=x’.
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
    #RewriteRule module.php index.php?q=%1 [L]

    # Rewrite rules for static page caching provided by the Boost module
    # BOOST START

    AddCharset utf-8 .html

    RewriteCond %{REQUEST_URI} !^/cache
    RewriteCond %{REQUEST_URI} !^/user/login
    RewriteCond %{REQUEST_URI} !^/admin
    RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
    RewriteCond %{REQUEST_METHOD} ^GET$
    RewriteCond %{QUERY_STRING} ^$
    RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI} -d
    RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f
    RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L]
    RewriteCond %{REQUEST_URI} !^/cache
    RewriteCond %{REQUEST_URI} !^/user/login
    RewriteCond %{REQUEST_URI} !^/admin
    RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
    RewriteCond %{REQUEST_METHOD} ^GET$
    RewriteCond %{QUERY_STRING} ^$
    RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}.html -f
    RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L]
    # BOOST END

    # Rewrite current-style URLs of the form ‘index.php?q=x’.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

    # $Id: boosted.txt,v 1.4 2006/12/05 10:39:19 arto Exp $
    _________________________________________________

  2. 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.

    Anyone know anything about the images bonking up now? They’re put in by FCKeditor in the /files/ directory.

    =)r

  3. krikette Has the following to say...

    Mind you, with just rewritebase / - trying to view the site directly from the original location: http://www.example.com/site1 will pop you back into the “main” godaddy site. but its reachable by the main URL except for images. :/

Question or Comment?? Spill it Now...

Jumping for Joy over comments!

We Reward Comments!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your 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 =( =;; =)] =;;;