Jump to content

moved whmcs to subdomain, now it's in a redirect loop


shout

Recommended Posts

I had whmcs installed on example.com/clients. I moved it to billing.example.com.

 

Now when I go to https://billing.example.com, it redirects me to http://example.com/clients/index.php ???

 

Why is it doing that?

 

Even stranger. https://billing.example.com/cart.php, it takes me to http://example.com/cart.php... and it WORKS, no 404 message!

 

That makes no sense, as WHMCS is not installed in the public_html root like that, it's in the billing subdomain (and the actual server location is in the root folder, UNDER public_html in a directory called billing!

 

What is going on here??

 

I don't know if it's related, but I also changed SSL settings at the same time. When it was at example.com/clients, the SSL gave https to example.com. But when I moved it, I got a new SSL to give https just to billing.example.com.

 

I've been following instructions from this thread (http://www.webhostingtalk.com/showthread.php?t=986580)

 

1) Change Directory.

2) Reissue License from within the WHMCS panel.

3) Delete the cron jobs and then recreate them with the new extension.

4) Make sure the config file is pointed to the right directory.

5) Change links within your Design to the new directory.

 

I got as far as 4, but I don't really understand 5, but I think that is not the issue here. Also, from this thread: http://forum.whmcs.com/showthread.php?33288-move-whmcs-installtion-to-a-sub-domain are these instructions:

 

Once you've moved the WHMCS files to the new directory then you'll need to update the cron path, any email forwarders and gateway callback URLs. Next update the System URL under Setup > General Settings.

 

I moved the folder and updated cron path, but I'm not sure what email forwarders or gateway callback URL means. Also, I have this redirect problem, so I can't log in to go to Setup > General Settings.

Edited by shout
Adding info on what I've done so far.
Link to comment
Share on other sites

Ok, sorry all: I figured it out, thanks to this thread: http://forums.whmcs.com/showthread.php?50866-How-to-moving-WHMCS-to-sub-domain This was the key info for me:

 

You need to update your default URLS in he General Settings. If you cant access the admin just make the change in the database directly..

 

tblconfiguration:

 

Change the values for entries:

SystemURL

SystemSSLURL

LogoURL

DomainURL

 

Pretty easy: went into PHPMyAdmin, found tblconfiguration, and changed SystemURL and SystemSSLURL. Bingo.

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.

×
×
  • 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