[support] Problem in htaccess and Clean URLs
Nicola
nirvana98 at gmail.com
Tue Aug 30 08:46:03 UTC 2011
Hi Gurus,
I have a real problem understand how to manage correctly the .htcaccess file
with Drupal 7 Clean URLs.
My actual configuration is:
/ - Root folder
/drupal/ - Drupal folder
/manyotherfolder/ - Other folders
/.htaccess - Root htaccess file
/drupal/.htaccess - Drupal htaccess
I have developed the site by creating a VirtualHost drupal.site.com and set
up ( by default ) the DocumentRoot as /drupal/.
Now I want to set up Drupal as main site ( www.site.com ) but I can't move
all the files from /drupal/ folder into root folder.
The mod_rewrite was enabled and the old site ( drupal.site.com ) use it
correctly ( CleanURLs ).
I want by using htaccess files set /drupal/ folder as Root folder (
drupal.site.com must be the same as www.site.com ),
I can't change Apache files ( VirtualHost or DocumentRoot ).
Drupal folder htaccess is the standard drupal file.
The root folder htacces is:
# BEGIN IWORX dirindex
DirectoryIndex /drupal/
Options Indexes FollowSymlinks Multiviews
# END IWORX dirindex
# BEGIN IWORX hotlink
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://site.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site.com [NC]
# END IWORX hotlink
# BY NICOLA START
Options Indexes FollowSymlinks Multiviews
RewriteBase /
RewriteCond %{HTTP_HOST} www.site.com
RewriteCond %{REQUEST_URI} !drupal/
RewriteRule ^(.*)$ http://www.site.com/drupal/$1 [L]
# BY NICOLA END
Any help will be more appreciate
Best regards
Nicola
--
Nicola Bisinella
Mobile: 0039 3348284966
Email: nicola.bisio at gmail.com
Site: http://www.nbisinella.org
Linkedin: http://it.linkedin.com/in/nicolabisinella
Twitter: http://twitter.com/nicolabisi
Facebook: http://www.facebook.com/nicola.bisinella
GPG: 0x903EB725
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110830/2c1f3563/attachment-0001.html
More information about the support
mailing list