1

I installed Drupal 7 on a web server and can;t access the root domain. When I comment the following lines in the .htaccess file I can load the site without any problem:

<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>

I don't want to comment the complete FilesMatch tag as I understand that it protects from unwanted access to files and server resources.

What should I change?

  • I would check your server configuration...I have installed literally hundreds of Drupal 7 sites on a variety of different servers and every one of them has worked perfectly with the default .htaccess file – Clive May 29 '12 at 11:26
  • well, it is a shared hosting and the supplier claims that it is something with my .htaccess... – Tibo May 29 '12 at 11:31
  • Yes, hosting providers do tend say things like that when they don't understand (or want to understand) the problem. I have the default .htaccess in dozens of sites on various different shared hosts and they all work perfectly. The problem is definitely with your hosting provider. You can prove it easily by installing MAMP/WAMP/Acquia dev stack on your local machine, installing Drupal and confirming that you do or don't get the same error. – Clive May 29 '12 at 11:37
  • I did. it is working great on XAMPP – Tibo May 29 '12 at 11:42
  • 1
    I think you have your answer then...your hosting provider isn't providing you with even the most basic server configuration settings. The only advice anyone can really give is to convince your hosting provider to change their over-arching .htaccess policy (unlikely in my experience), or move to someone who offers a full service. – Clive May 29 '12 at 11:44
1

if you use one.com

I just find out, that you can remove or commenting

Options -IndexesOptions 
Options +FollowSymlinks

in the htaccess file, and then it should work. I don't know why.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.