/login goes to old domain
Permalink
I'm running v8.2.1 and had developed a web site under an old domain, let's say old-domain.co.uk.
That developed version had been migrated to a new area on the server with a new database and is working perfectly but I decided to reuse the old development version for my next domain, which was to be very similar. I made all the changes I could think of and got it established at, say, new-domain.co.uk and all seems to be working well except for one thing...
Pretty URLs are active and when I go to, for example, new-nomain.co.uk/somepage, all works well. The one thing that doesn't work is when I try to log in to the back end using new-domain.co.uk/login and for some reason it tries to log in to old-domain.co.uk/login and says there is an invalid token.
Logging in to new-domain.co.uk/index.php/login has no problems but I'm rather stuck for ideas. I can't see anything that might cause this in .htaccess. Cacheing is turned off and the cache has been cleared and as far as I can see there's no mention of old-domain.co.uk in the database.
Equally I can't see anything in application/config or generated_overrides.
Any ideas?
That developed version had been migrated to a new area on the server with a new database and is working perfectly but I decided to reuse the old development version for my next domain, which was to be very similar. I made all the changes I could think of and got it established at, say, new-domain.co.uk and all seems to be working well except for one thing...
Pretty URLs are active and when I go to, for example, new-nomain.co.uk/somepage, all works well. The one thing that doesn't work is when I try to log in to the back end using new-domain.co.uk/login and for some reason it tries to log in to old-domain.co.uk/login and says there is an invalid token.
Logging in to new-domain.co.uk/index.php/login has no problems but I'm rather stuck for ideas. I can't see anything that might cause this in .htaccess. Cacheing is turned off and the cache has been cleared and as far as I can see there's no mention of old-domain.co.uk in the database.
Equally I can't see anything in application/config or generated_overrides.
Any ideas?
open application/config/app.php in editor and remove and remove the array items canonical-url + canonical-url-alternative if present. Then you could manually clear the cache: Remove all files in application/files/cache and at last you should check your htaccess file for any redirection rules. But in general it should work with just editing the app.php file.