2 Sep
2009
2 Sep
'09
1:04 p.m.
I have my Drupal installation in a subfolder but don't want to display the subfolder in the URL. For example I want www.example.com/* to redirect to www.example.com/drupal/* I've achieved this using this .htaccess. RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteCond %{REQUEST_URI} !^/drupal/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /drupal/$1 RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteRule ^(/)?$ drupal/index.php [L] How can I make Drupal generate www.example.com URLs rather than www.example.com/drupal? Any help would be appreciated, thanks.