Havouza Posted November 17, 2020 Posted November 17, 2020 Hi! Sometimes you take out victory a little early I have cloned our shop, meaning comied all files and dumped the sql into a new created db all on a new domain I have changed the shop url in the table ps_shop_url, but when I go to the new domain it directly redirect me to the old shop: What have I missed to change?? Any help apreciated Anders
Havouza Posted November 17, 2020 Author Posted November 17, 2020 .htaccess is gone but which cache should I delete?
Wartin Posted November 17, 2020 Posted November 17, 2020 2 minutes ago, Havouza said: .htaccess is gone but which cache should I delete? once you delete .htaccess you should re-create it. Have you done it? I paste my steps (I toke it from PS forum and change it to use it in TB): 1. Copy all files via FTP 2. Duplicate database to other hoster 3. check the php settings at your new hoster!! (PS <= 1.6.1.3 is not yet PHP7 ready! so you wont see anything in these cases) 3. open Database and edit "tb_shop_url". Set the new path and domain for your new shop (don't forget the last /) 4. edit config/settings.inc.php and set the new database access 5. delete the .htaccess file in your shops root folder 6. login to the admin backend and go to settings > seo & urls and save the path and domain properties to create a new .htaccess file (after creating the new .htaccess file you will be able to view/use the frontend of the shop, not earlier as it contains all necessary info it needs to translate the friendly urls of the shop frontend) good luck!
Havouza Posted November 17, 2020 Author Posted November 17, 2020 1 minute ago, Wartin said: once you delete .htaccess you should re-create it. Have you done it? I paste my steps (I toke it from PS forum and change it to use it in TB): 1. Copy all files via FTP 2. Duplicate database to other hoster 3. check the php settings at your new hoster!! (PS <= 1.6.1.3 is not yet PHP7 ready! so you wont see anything in these cases) 3. open Database and edit "tb_shop_url". Set the new path and domain for your new shop (don't forget the last /) 4. edit config/settings.inc.php and set the new database access 5. delete the .htaccess file in your shops root folder 6. login to the admin backend and go to settings > seo & urls and save the path and domain properties to create a new .htaccess file (after creating the new .htaccess file you will be able to view/use the frontend of the shop, not earlier as it contains all necessary info it needs to translate the friendly urls of the shop frontend) good luck! all done to 5. 6 I cant do because I am directly redirected to the old shop
Havouza Posted November 17, 2020 Author Posted November 17, 2020 OK I can now access backend and have done also number 6 But now the frontend show me a 500 Server error.
Wartin Posted November 17, 2020 Posted November 17, 2020 32 minutes ago, Havouza said: But now the frontend show me a 500 Server error. well, it is a step forward. Try setting debug mode on to see what's the error about.
Wartin Posted November 17, 2020 Posted November 17, 2020 37 minutes ago, Havouza said: But now the frontend show me a 500 Server error. I had troubles before adding a trailing / to the url, in step 3. Double check it.
Havouza Posted November 17, 2020 Author Posted November 17, 2020 well I will start over. I have rolled back the system because for some reason I also got a 500 on the old frontpage so now I will start over 2 hours ago, piet said: Delete the .htaccess file and cache
Havouza Posted November 18, 2020 Author Posted November 18, 2020 Hi! Well I started from beginning but no luck One thing I wonder is whet owner and group should the files have in the new shop. Its on the same vps, under a new domain
Wartin Posted November 19, 2020 Posted November 19, 2020 8 hours ago, Havouza said: One thing I wonder is whet owner and group should the files have in the new shop. Its on the same vps, under a new domain I should be the same user the web server is running.
Andrew Posted November 19, 2020 Posted November 19, 2020 Have you deleted cache/class_index.php This quite often causes me a problem when cloning if I forget to remove it.
Havouza Posted November 19, 2020 Author Posted November 19, 2020 Thanks! I have now sorted it out, I am not sure what is was but now both back and front works
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now