Did a fresh install and when I log in and try to get to the admin page, it could not be found. I can access content and other things, so I made it to disable clean URL's and now I can click on admin and its no problem.

I prefer clean URL's, so is there anything I can be doing to make the admin page appear?

Thanks for any help

Comments

cog.rusty’s picture

If you can use clean URLs to access pages such as /user or /node/35 or /blog, but you can't access /admin, make sure that you don't have a real subdirectory called /admin or that your host hasn't somehow reserved that path.

If you disabled clean URLs and rename your .htaccess file to get it out of the way, then of course you can use /?q=admin. At that point, check what happens when you go to /admin. Does something other than Drupal come up?

cwinkler’s picture

hmmm, there is that directory and inside I see a cron directory, a "de" directory and the file php.ini. The "de" directory appears to have something with languages. I don't have a clue what it is. Would you or anyone be of help to identify it. Why would it be there? I know a little about looking under the hood, though not an expert.

Also, if I rename my .htaccess file, what will that do?

Currently with clean url disabled, it shows like this when i click admin:
http://myrestoredcredit.com/?q=admin

it does this w/o renaming .htacess & not sure how that ties in.

The admin page comes up... Not sure what to do next?

cog.rusty’s picture

So there is a real /admin directory. That's the problem. No need to do the other tests that I suggested.

Remove it or rename it if you can, and the problem will be solved.

If you can't remove it or rename it, try modifying Drupal's .htaccess file to make Drupal take over that path. Near the end of the file, add two lines, changing:

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

to:

RewriteCond %{REQUEST_URI} ^/admin
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]