Jump to content

Moving a Prestashop from one URL to another @same provider


Recommended Posts

Dear all, help.

 

I have a Prestashop webshop which is active for over a year. Everything is configured nicely and is working smooth. Some specs:

 

- Prestashop version 1.4.1, not updated since it worked well with a theme

- Theme installed, working fine - some tweaks were required but no issues

- Payment features installed, language updated made.

 

Now I am required to relocate the shop from one URL (installed in a folder) to another URL (main public) at the same serverprovider. However this appears not to be as easy as expected.

 

I followed these instructions;

 

- http://www.howtomakeawebshop.com/tip-3-moving-prestashop-from-one-host-to-another/

- http://www.phpbb.com/kb/article/transferring-your-board-to-a-new-host-or-domain/

 

This is what I have been able to do;

 

- I have backup-ed all my files in a local folder

- I have been able to backup database

- I have reinstalled Prestashop - via installtron - old version 1.4.1 (just in case)

- I have copied all files from locla backup folder to active URL using Filezilla - overwriting some of the files -

- I have reinstalled the database, using BigDump.php - which worked

 

and then...error.

 

when I go to the main page of the new URL the error I get is; "The requested URL /nl/ was not found on this server." Which is correct, as I had installed both an English and a Dutch (/nl) language version of the Prestashop, but the folder is not there.

 

Hence the shop won't start. Maybe everything is in place, but I am unable to check if it works.

 

p.s. I am not a specialist at the hardcore tech-stuff, but I am getting by with what I find online, which helps most of the time.

 

Who can help me out?

 

thanks a lot in advance!!!!

 

MWS

Link to comment
Share on other sites

Hello, anyone here; the forum seemed quite active. I deducted that it might have something to do with the .htaccess.preinstall file which is in my rootfolder...it seems I am missing my .htaccess file. anyone experience with this? I noticed while viewing the file it still directed towards the old folders on the other URL. thanks all in advance!.

MWS

Link to comment
Share on other sites

you could try to log into your back office and regenerate your .htaccess file from the Tools | Generators section.

 

you also went overboard, as you did not have to re-install. you simply should have move your files to the new folder and change the settings to point to the new base url.

Link to comment
Share on other sites

@bellini13 Thanks for your response. I will try that. Just to get that straight, that would mean I would go to the old shop - which is still active - from the base URL and got to Tools/Generators there and then copy the .htaccess file to the new URL in the root folder? Or am I misunderstanding you and would I be able to generate .htaccess from the new URL install?

 

Would I then need to alter the root folder in the .htaccess file?

 

...than on the overboard remark, I guess so... ;) lol.

 

thanks again

Link to comment
Share on other sites

what i would have done is to take a complete backup of your site

1) use phpmyadmin to export the database, or if the database is small, do a DB backup from the back office Tools section

2) use an FTP client to download your shops "folder", what ever that was called, to your local pc.

 

next you use the same FTP client to upload the content (all folder and files) from the old folder to your domains root folder.

 

then you edit your config/settings.inc.php file, and change the BASE URL from

define('__PS_BASE_URI__', '/old_folder/');

to

define('__PS_BASE_URI__', '/');

 

 

what you did was very different, and unnecessary and likely has added some additional complexity to unravel. I wouldn't even bother trying to fix it, if you have the original backups just try following my steps above

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