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