1

I had got a .htaccess file from: https://github.com/drupal/drupal/blob/7.x/.htaccess and copied it to /var/www/drupal/.htaccess. I got to my web browser and my default theme has disappeared. I copied it to test, and my theme was back. How can I keep my theme and have .htaccess (I need it for clean URLs)?

  • 1
    You should have always had a .htaccess. It comes with drupal core by default. - What do yoou mean by "I copied it to test, and my theme was back"? – rooby Oct 9 '14 at 3:56
  • Also, I recommend taking drupal core from the stable release downloads at drupal.org/project/drupal instead of from github. – rooby Oct 9 '14 at 3:57
  • I renamed the file to test and my theme came back. If so, where is .htaccess – user2649805 Oct 9 '14 at 3:57
  • If you download Drupal 7.31 from the page I linked, .htaccess is in there at the root/top level of drupal. – rooby Oct 9 '14 at 4:38
  • As @rooby stated, use the default download from drupal.org, the .htaccess file is included. Please note, that you may have to alter it slightly to get it work, e.g. from your provided information it looks like Drupal is running from a sub directory. In that case, you would need to set the RewriteBase in your .htaccess. – Paul Oct 9 '14 at 6:49

Your Answer

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

Browse other questions tagged or ask your own question.