2

I am trying to install a drupal site that I built a while back. I put it in a sub folder for viewing purposes and am having trouble logging in. I got the site installed, the DB connected but when I go to myurl.com/sitename/user I get a 404 error. The site is in maintenance mode so I can't get into the backend system. I know the site is partially working as when I go to myurl.com/sitename I get the maintenance page with all broken links. I did some searching and made sure my .htacces file was updated with this code:

RewriteBase /sitename
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

But still not working... What else should I be doing here? THanks

8
  • You put your site in a subdomain of the root? Aug 3, 2012 at 16:47
  • yes example: myurl.com/sitename/ Aug 3, 2012 at 16:57
  • You said you put your drupal site in a sub folder for viewing purposes. Sub folder of WHAT? We need to know this because it may be the location of where you are locating your drupal install that can be a problem. Aug 3, 2012 at 17:00
  • A subfolder of my testing url. The entire install is in the sitename folder... is that any clearer? Aug 3, 2012 at 17:02
  • Make sure that in the settings.php file of your test site the base url is correct. Aug 3, 2012 at 17:05

1 Answer 1

2

Make sure to configure your base url in your settings.php file and revert your .htaccess to the default from drupal.

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.