I installed a magento with sample data. Everything working fine. Only i am unable to login to admin.
When i access magento login page: at localhost/admin
Then it shows this normal magento login:
But after login it again shows a login page but with session key in url (which seems i login)
this is the url generated
http://localhost/index.php/admin/index/index/key/daa4f07e53bab68173031a1b566a6c87/index.php/admin/dashboard/index/key/f5af74af31bc336d09d1bff85da57625/?SID=napqsla40jor8f5kjvt4r27210
And when i modify this url to
http://localhost/admin/dashboard/index/key/f5af74af31bc336d09d1bff85da57625/?SID=napqsla40jor8f5kjvt4r27210
Then it shows actual dashboard but without loading js and html files. ONLY HTML version.
Any idea why it is doing like this?
Apache Rewrite enabled
Curl Enabled
Best Answer
There can be 3 issues as far as my knowledge:
Check your secure base url and unsecure base url in 'core_config_data' table. It should be something like this:
You can find this row in table whose path column value is
web/unsecure/base_url
andweb/secure/base_url
.Go to
/your_project/var/cache
folder and delete all the contents. Clear browser cache as well and try reloading page.If you are using wamp server then check if you have enabled "php_curl" extension. If not, then enable it, restart wamp server and then try loading the page.