0

We have a Drupal 7 Drupal Commerce site that we've just moved to our virtual private apache server, however we're seeing very strange behaviour that's making the site not work.

We're getting a strange problem where many files (images, CSS, JS) are getting "307: Temporary redirect"s to 'index.html', which doesn't even exist.

We have a very ordinary apache setup (no unusual settings), and the htaccess file of our website is straight from Drupal core - we haven't edited ourselves.

Is this a problem with the way we've set up Drupal, apache, DNS, or something else?

2
  • The issue should be in your server configuration. I've never faced such issue with the drupal. Check other than front page in your drupal site is accessible. If not, your server is not reading the .htaccess file.
    – James
    Commented Jan 18, 2017 at 6:27
  • Almost definitely a server configuration issue.
    – Jaypan
    Commented Sep 13, 2019 at 4:35

1 Answer 1

0

There is a Rewrite Rule written in .htaccess as,

# Pass all requests not referring directly to files in the filesystem to
# index.php. Clean URLs are handled in drupal_environment_initialize().
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]

This may be your problem.

There are few assumptions that can be the reason why its happening :

  • Please check the method you the using to access files.
  • It might be your server issue which does not provide correct access rights for accessing the files
  • Your files are not properly placed in correct locations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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