logo       

Clean URL support when parent web directory: msg#00068

Subject: Clean URL support when parent web directory
Hi,

I'm very new to Drupal and have only started using it since yesterday.

I've done some trouble-shooting on this problem but can't resolve it.

I'm trying to use the "Clean URLs" option in "Administrator -> Settings" but 
it fails with the error:

It appears your host is not configured correctly for Clean URLs. Please 
check for ModRewrite support with your administrator.

I have Drupal installed off a parent website:

http://www.domain.com

where the drupal files actually exist, and _not_ through a subdirectory like:

http://www.domain.com/drupal

If I install Drupal into the subdirectory on the same server, the Clean URLs 
option works fine. If I install Drupal into the parent directory of the web 
server, drupal fails with the error above.

In my apache config, when I have the parent server setup, I have the 
following entry:

UseCanonicalName off
VirtualDocumentRoot /home/domain/public_html/%0

which allows me to have alias directories like:

/home/domain/public_html/www.domain.com
/home/domain/public_html/hostname1.domain.com
/home/domain/public_html/hostname2.domain.com

so when someone goes to "http://www.domain.com"; apache maps them to the:

/home/domain/public_html/www.domain.com

directory, and when they visit "http://hostname1.domain.com";, apache maps 
them to the:

/home/domain/public_html/hostname1.domain.com

directory and so on.

This is how I've set it up for Drupal, to reside under:

/home/domain/public_html/www.domain.com

I don't want a "drupal" subdirectory or anything, but still want to use 
Clean URLs.

What's the problem here?

Note also I have:

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

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

  # 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 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]
</IfModule>

in my .htaccess file within the /home/domain/public_html/www.domain.com 
directory, and my settings for:

<Directory /home/domain/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
AllowOverride All
</Directory>

in my apache conf. I'm using apache 2.0.52.

Thanks for any help here.

Michael.

-- 
[ Drupal support list | http://lists.drupal.org/ ]



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe