Jump to content

BO office redirects to another page 404 when clicking on log in


tivicrdotcom

Recommended Posts

Hello fellow geeks, so the website works like a charm, but suddenly the BO, which also works, it loads and presents the sign in screen. When I enter the user name and password is redirects to another site inside my root directory. I has to be a .htaccess issue but I have tried deleting the file and the problem persists. To better illustrate, the website sits in a folder on the main domain - > tivicr.com/junior so when I log in on the BO it doesn't stay in that directory but rather redirects to a 404 error page not found. Thanks in advance!

Link to comment
Share on other sites

It actually re-directs to a non existent page under the root directory hence receiving the 404 error.

This is the main domains, sitting inside the root (tivicr.com) https://www.tivicr.com/junior/en/

This is the BO https://www.tivicr.com/junior/admin1290/index.php?controller=AdminLogin&token=fdad3d159788300b6557784717e546d0

I try to log in and then get redirected to this link https://www.tivicr.com/junior/admin1290/index.php?controller=AdminDashboard&token=d40864b00ff4386db34ccb87809edacd

Link to comment
Share on other sites

I'm not get where the issue is, both links are correct, token is regenereted for session so if you use expired token prestshop will display screen with information about that. When you go to login page try in link keep only  https://www.tivicr.com/junior/admin1290 then token will be regenerated and added to your url. 

Link to comment
Share on other sites

Hi @endriu107, thanks for replying, how are you? I hope good. So, everything works, customer can log in, view products and purchase even, is the BackOffice, the admin, which is the only employee, cannot longer log in. It redirects to the root domain. So, the website in sitting on a folder from within the main domain tivicr.com, being the actual site https://www.tivicr.com/junior 

When I try to log in to the BO I use the same access link as always https://www.tivicr.com/junior/admin2021 the page does load fine. I input the same log in info as always did, then it redirects to the page not found error of the main domain (tivicr.com), makes sense? The odd thing is that it maintains the folder address in the URL:

https://www.tivicr.com/junior/admin2021/index.php?controller=AdminDashboard&token=d40864b00ff4386db34ccb87809edacd   

Link to comment
Share on other sites

Another interesting thing is that, if I am on the BO and I input a wrong email/password it doesn't re-direct to 404, it displays "the employee does not exist, or the password provided is incorrect". This means, the 404 redirecting issue occurs only when the correct email/password gets entered. So it may be a issue of the admin user being somehow corrupted?

Link to comment
Share on other sites

  • 2 weeks later...
On 2/8/2023 at 1:03 PM, NPO said:

Had a customer with the same prob..   I used a different browser (well, different everything) and it worked fine, I was able to log in.

Thanks for replying NPO, we indeed tried that as well as incognito mode and manually cleared cache through ftp but the problem persists.

Link to comment
Share on other sites

So using some logic, the page loads fine, BO loads, credentials are entered, click log in and baaaam, it redirects to a 404 error page. So it must be redirecting to a non existing page? Maybe the cookie expires but why would this cause 404?

To summarize:

  • Running 1.7.4.4
  • Cache cleared manually through FTP
  • Tried on several browsers.

I was inspecting the .htaccess file and noticed at the end this:

#If rewrite mod isn't enabled
ErrorDocument 404 /junior/index.php?controller=404

So I am wondering if this is causing the issue, rewrite mod is not enable so it kicks to the 404. How can I check this through ftp, I have zero access to BO.

Link to comment
Share on other sites

1 hour ago, endriu107 said:

I think problem could be in taht you install one Prestashop inside another and there could be some htaccess or cookies issue.

Instead using this: https://www.tivicr.com/junior better way is create subdomain and move store there like https://junior.tivicr.com

It could be, .htaccess looks good maybe a cookie issue I was thinking.

Edited by tivicrdotcom (see edit history)
Link to comment
Share on other sites

Found something interesting which is related to the redirecting. So I we were inspecting the site https://www.tivicr.com/junior/index.php, if you rest the mouse on top of any product, ti will display the url at the bottom of the browser (expected) yet if you click on it, it will stay in the index.

We thought it was .htaccess but loaded a new file and problem persists. Thanks in advance!

AJ

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...