Jump to content

Moved URL's but new URL redirects to old URL


jkility

Recommended Posts

Hi,

 

So I've moved our Prestashop hosting from https://rebootmewithhsct.co.uk/shop to fab-fudge.co.uk . They are both on the same server so I've not touched the database as it still points to the same place. I've moved files to the new directory and updated prestashop URL's and also cleared the cache. But for some reason it appears that fab-fudge.co.uk redirects to the old website homepage yet I can access the adminCP with no problem.

 

Would there be any reason for this at all?

 

Regards

Link to comment
Share on other sites

Check your .htaccess file to make sure the URL has changed there. Also, check the domains in the ps_shop_url table of your database using phpMyAdmin.

 

 

Can you look (with phpmyadmin) in your database table ps_shop_url and report what you see?

 

Hi both,

 

I've checked ps_shop_url and thats coming back as www.fab-fudge.co.uk which is correct. I have a feeling it is down to my .htaccess which I've got my host looking into for me.

Link to comment
Share on other sites

Hi, I just had the same problem... not sure which host you're using, I'm currently using godaddy.  

 

In my case, I was moving my prestashop 1.5 installation from abc.com/shop to abc.com/oldshop/  keeping the same domain just changing the sub directory.

 

I basically searched through all the forums and changed all the correct settings:

 

1) I changed the setting under ps_shop_url table

2) I changed the setting in ps_configuration table (had to scroll down quite a bit since it was like #200 something)

3) I changed the setting under settings.inc.php

 

Even after all this, I kept getting an error with: "Warning: require(/home/content/16/9526416/html/shop/config/config.inc.php) [function.require]: failed to open stream: No such file or directory in /home/content/16/9526416/html/shop/index.php on line 58"

 

As you can see it was still pointing at my original directory, even though everything had been changed. 

 

The solution for me was to go into my dashboard of godaddy (yours may be different since I'm still using their old version (not cpanel)) but i had to go under "system processes" and "end" the web service to have it restart.  I assume it restarted Apache and caused it to reload the settings.inc.php file which then updated the value in memory. 

 

In short, if you're having an issue after already changing all the relevant values, don't forget to restart your web server (even if you're using a shared hosting, like I am) you still need to restart it.

 

Hope this helps someone else since I didn't see the answer posted anywhere else.

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

  • 7 years later...

Try installing a redirect module to  https://rebootmewithhsct.co.uk/ domain
use  https://rebootmewithhsct.co.uk/shop in the source URL and fab-fudge.co.uk  as a the destination URL.

Module link:
https://www.fmemodules.com/en/prestashop-modules/82-url-redirects.html

You can also use>
https://www.fmemodules.com/en/prestashop-modules/49-pretty-seo-friendly-urls.html

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...