Magento Forum

   
Page 1 of 2
[SOLVED] Admin redirecting to homepage after upgrade
 
MartinaL
Sr. Member
 
Total Posts:  82
Joined:  2008-03-31
 

Every time i type siteurl/admin I go to the admin login page and when I click login i get directed to siteurl/index.php/admin/dashboard/ and the homepage is displayed?

This is only after upgrading to the latest release

If i delete index.php out of the URL is takes me back to the admin dashboard but as soon as I click on any other menu in the admin side it adds index.php followed by actual admin page ai requested and I am back at the homepage again?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MartinaL
Sr. Member
 
Total Posts:  82
Joined:  2008-03-31
 

Sorry to bump this but i am unable to save anything in the admin side because it redirects back to index.php/..... when it tries to save so the changes aren’t saved!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Kara Heinrichs
Guru
 
Avatar
Total Posts:  482
Joined:  2008-01-17
aa, mi, us
 

By “homepage” do you mean the homepage of your front end website?  If so, I had that happen to me after I moved a database from my dev server to my production server.  All I had to do was go into the database and update web/unsecure/base_link_url and web/secure/base_link_url in the table core_config_data to that of my production URL.  Then delete the contents of the directories var/cache and var/sessions.

Don’t know if that’s what you’re experiencing, but for what it’s worth, it’s something else to look at.

 
Magento Community Magento Community
Magento Community
Magento Community
 
PureBloke
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2009-03-12
Seattle, WA
 

I am having the same problem and would very like to find a solution myself.

 
Magento Community Magento Community
Magento Community
Magento Community
 
MartinaL
Sr. Member
 
Total Posts:  82
Joined:  2008-03-31
 

I haven’t moved servers and I have checked the web/unsecure/base_link_url and web/secure/base_link_url and neither of them have index.php in them?

And yes I mean the front end homepage.

I have also tried deleting everything out of var/cache and var/sessions and still no luck!

 
Magento Community Magento Community
Magento Community
Magento Community
 
MartinaL
Sr. Member
 
Total Posts:  82
Joined:  2008-03-31
 

I found the solution to this problem by contacting my service provider, there answer and what fixed it was:

When Magento is installed in a subdomain on our servers, then because of the way each site runs under its own chrooted environment and the way that control panel makes use of mod_rewrite rules for subdomains, you need to use Magento’s php5-cgi binary file.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rod_C
Member
 
Total Posts:  33
Joined:  2009-02-16
 

Hi MartinaL

Can you please explain what it is that you had to do to get this to work???
I’m having the exact same problem and Just made a post about it before discovering this thread..

Can you explain how to use Magento’s php5 file.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tree-Fox
Jr. Member
 
Total Posts:  18
Joined:  2009-04-01
 

Odd, was working on my admin side all day—no problems.  Came back today (after midnight), and I get redirected to the homepage with /index.php

What hosts are you running on when this happened?  I’m with AspirationHosting, who so far has been great.  Will post a solution if I can find one.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tree-Fox
Jr. Member
 
Total Posts:  18
Joined:  2009-04-01
 

Odd, it seems to have resolved itself.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tree-Fox
Jr. Member
 
Total Posts:  18
Joined:  2009-04-01
 

Sadly, this problems is back again.

Cleared the var and session directories, still happening.  Going to dig further—I haven’t changed anything in days.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Wooks
Jr. Member
 
Total Posts:  5
Joined:  2008-08-17
 

@Tree-Fox, did you find a solution after all?
@MartinaL, can you tell us how you managed your fix?

 
Magento Community Magento Community
Magento Community
Magento Community
 
danpop
Jr. Member
 
Total Posts:  4
Joined:  2009-08-31
 

Go to System->Advanced->Admin->Security and put “Add Secret Key to URLs” to No . It worked for me

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andreas Brauchli
Jr. Member
 
Total Posts:  1
Joined:  2010-02-18
 

i got here since i had the same issue on 1.4.0.0 - solution seems rather to be Configuration / General / Web / Redirect to Base URL if requested URL doesn’t match it : No

 
Magento Community Magento Community
Magento Community
Magento Community
 
welanieinc
Jr. Member
 
Total Posts:  5
Joined:  2010-07-09
 

I was redirect to the front end home page when I was trying to access the back-end url.

Since I had no access to the back-end I could only change config throw the DB.

Here is how I fixed the probleme.

I changed in’’core_config_data’’:  the value of ‘’web/url/redirect_to_base’’ from 1 to 0

Then I deleted the cache and the session in the folder var

 
Magento Community Magento Community
Magento Community
Magento Community
 
friends1976
Member
 
Avatar
Total Posts:  42
Joined:  2008-11-10
 
welanieinc - 15 September 2010 06:04 AM

I was redirect to the front end home page when I was trying to access the back-end url.

Since I had no access to the back-end I could only change config throw the DB.

Here is how I fixed the probleme.

I changed in’’core_config_data’’:  the value of ‘’web/url/redirect_to_base’’ from 1 to 0

Then I deleted the cache and the session in the folder var

This worked for me!  Thank you!  smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sousa
Guru
 
Avatar
Total Posts:  348
Joined:  2007-09-02
Porto, Portugal
 

I deleted the cache and the session in the folder var!!!

SOLVED

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2