Jump to content

Links do not contain www. when logged in as admin


Recommended Posts

I've just noticed that when logged in as admin, all the URL's inside WHMCS do not contain www. despite the system URL being set correctly.

I've been trying to troubleshoot an issue whereby an admin "logged in as client" keeps seeing the WHMCS login page for the user when trying to access anything from the main menu.

So after some digging I've worked out  what happens...

1. I'm logged in as Admin user. I click any links inside WHMCS - they do not contain www. Everything works ok though.

However....

2. If I "Login as Client" and attempt to access any URL's with https://www.domain instead of just https://domain  - WHMCS throws up the login page.

This is a problem because I'm using custom menus which all contain https://www. So if I become a client, I can't access anything as the user without first removing the www. from the URL.

If I login as an actual user  - i.e not logged in as admin, all the URL's contain www and the clients are not having any problems.

I'm not sure why WHMCS is behaving this way.  The "system URL is set as https://www.  - so why is WHMCS dropping the www for admins? - And more importantly, why won't it function with the www subdomain when logged in as a client through the admin area?

I don't have any htaccess redirects in place - other than the standard WHMCS friendly URL rewrites.
 

Link to comment
Share on other sites

can you try logging in to the admin area using https://www.domain because I could reproduce your error in Six when logged into the admin area not using www, and then trying to login as a client (from summary page) using www in the link..

however, when I logged into the admin area using https://www.domain and then tried the login as client link, it worked without issue (no redirect to login) - so maybe the admin URL has to match the client area URL... e./g if you need www in client area, it needs to be used in the admin area ??

Link to comment
Share on other sites

Oh crikey - you're right.

The bookmark to the admin area in this particular browser is set without the www. I hadn't realised. So when you login at https://domain all subsequent internal links just come off that. If you then try to "login as client" - none of the links work.

A really stupid mistake on my part not to notice this. I just assumed everything came off the configured "system URL". I was looking for a more complicated answer to my problem.

Thank you Brian once again!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated