multi site, symlinks and editing .htaccess to verify with google webmaster

ipwa - February 5, 2008 - 22:05

I made this post in the Google Webmaster Help forum: http://groups.google.com/group/Google_Webmaster_Help-Tools/browse_thread...

I wrote that having a multi site Drupal 5 installation with multi sites using sym links, I was having trouble verifying my site. This is the reply I got:

You might want to check if in your
root domain\folder\webspace the .htaccess
has this option set:
Options +Indexes +FollowSymLinks

Otherwise the symbolic links may not be followed
unless they are allowed globally.

I want to know where can I add this in the .htaccess file that comes with Drupal.

Any help would be really appreciated.

check location of verification file itself..

panis - February 5, 2008 - 22:49

ignoring the google verification file - can you access the drupal site itself at mulpo.com? If you can then symlinks is not the issue.

I am guessing that you are putting the verification file under the sites/mulpo.com/. That will not work.. Your top level folder is still going to be where drupal is installed i.e. at the same level as the sites folder and not anywhere under it. You will need to keep the google generated verification file on that folder.

So all the verification files need to be dumped under the same folder - the top level folder where drupal is installed.

Note: I do not remember if the verification filename is the same for all the sites or if the filename is different - if the same filename is used for all sites - then you may need to add rewrite rules into your .htaccess file to redirect the request to the verification file depending on which site the request is for and keep the verification files in separate subfolders. Or verify the sites one at a time and overwrite the verification file each time.

Hope this helps.

 
 

Drupal is a registered trademark of Dries Buytaert.