7.26 /admin, /user not found on Localhost I am new to Drupal. I developed a site on a server and now migrating it on my personal computer (Windows 8.1). The site is working fine as it should.

My problem on localhost is that when I log in to my site (using this url: localhost/drupal_site/user/login) with an admin userid, it redirects me to the "404 Page(url: localhost/drupal_site/user)" on submission of correct username/password, And neither the admin menu bar occurs on the site.

I've tried modifying .htaccess, httpd.conf, cleaned cache tables in database and clean urls etc.

In .htaccess i've write:

'RewriteBase /drupal_site'


In httpd I've wrote:

&lt;Directory "C:/xampp/htdocs/drupal_site"&gt;    
    AllowOverride All     
&lt;/Directory&gt;    
AccessFileName .htaccess    


Its ironic that I've tried various solutions found with drupal community, but none of them really worked for me.

My Drupal Version is 7.26.

Xampp: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3

Can anyone help me resolving this?
This issue might be a variation of the question about "drupal /?q=user is working but /user not working". So verify if you can use an URL containing ?q=user or ?q=admin. If that gets you going, then probably tuning RewriteBase in your .htaccess (as described in the accepted answer of that question) should help.

It might be worth trying to further enhance your .htaccess file, by adding a line after that existing RewriteBase, which looks like so:

RewriteRule . index.php [L]


For more details on the above line, refer to the (accepted) answer in this question on StackOverflow.

Another option for debugging is to retry using another browser. If via that brower you are able to login, then it's probably a cookie problem (in your original browser).

If none of these suggestons help, then re-edit your question by adding more details about which modifications to your '.htaccess file, httpd.conf, etc' you already tried (and didn't work).

PS: Are you aware of the security issue fixed in Drupal version 7.32? Hurry to get your "site on a server" (as in your question) upgraded to the most Drupal core version!