Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Site is hosted in fasthosts wherein <IfModule> is not supported so they advice me to edit .htaccess to something like this.

Comment, 
Order allow,deny
</FilesMatch>
Options –Indexes
Options +FollowSymLinks
DirectoryIndex index.php
Enable expirations
ExpiresActive On
ExpiresDefault A1209600
ExpiresByType text/html A1

Sample:

#<FilesMatch
#"\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Ta
#g|Template|all-wcprops|entries|format)$">
# Order allow,deny
#</FilesMatch>

It solved my first issue, 500 error.

This time, another error is showing, images are not correctly showing and css. Instead of the path to be site.com/drupal installation/ image of path, image address become site.com/image of path.

By the way, I am installing drupal in a sub folder. site.com/dupalHere

share|improve this question
If you could post all current content of your .htaccess file, it would be much easier to help you. – user11153 Mar 29 at 18:05

1 Answer

Add line

RewriteBase /dupalHere

to your .htaccess file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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