Jump to content

Moving to new PS website on same domain but from sub-directory to root


ScooterCk

Recommended Posts

Hi,

 

OMG !!!! I have spent the whole weekend trying to move from a PS 1.4 website to a PS 1.6 new site I have built on a spare domain.

 

The original and still live PS 1.4 is on a sub directory of the domain and thought I'd take the chance and put the new site on the Root, the new site however has different URLS, due to the original (live) site being on PS 1.4, so the URL's are not clean.

 

I managed to get the new website loaded onto the Root, but found it almost impossible to redirect the old website pages to the new urls on the new site and on the Root.

 

My website has approx 400 web pages, I applied exactly the same redirect 301 rule in the .htaccess and found the only approx 10% of the redirects worked, the rest didnt?

I even triple checked the URL on the new site to ensure that I hadnt entered the wrong URL in the redirect, but it was exactly the same.

 

Heres is an example of some of the 400 approx redirects in the .htaccess file.

 

redirect 301 /kes/original-phat/47-xbox-360-phat-jtag-service.html http://xxx.consolewizard.co.uk/original-mods/xbox-360-phat-original-jtag-service.html
redirect 301 /kes/phat-xbox-360/49-xbox-360-usb-damaged-broken-repair-service.html http://xxx.consolewizard.co.uk/xbox-360-original-repair/usb-damaged-broken-repairs.html
redirect 301 /kes/phat-xbox-360/52-xbox-360-free-health-check.html http://xxx.consolewizard.co.uk/xbox-360-original-repair/xbox-360-free-diagnose-service.html
redirect 301 /kes/original-phat/53-xbox-360-phat-rgh-reset-glitch-hack.html http://xxx.consolewizard.co.uk/original-mods/xbox-360-phat-original-rgh-reset-glitch-hack.html
redirect 301 /kes/original-phat/55-jtag-or-rgh-dashboard-update-xbox-360-phat-slim.html http://xxx.consolewizard.co.uk/original-mods/jtag-rgh-reset-glitch-hack-dashboard-update-xbox-360-phat-original.html
redirect 301 /kes/slim/56-slim-xbox-360-red-dot-fault-e82-errror-red-light.html http://xxx.consolewizard.co.uk/xbox-360-slim-repair/red-dot-fault-e82-error-red-light-repair.html
redirect 301 /kes/slim/57-slim-xbox-360-tray-jammed-faulty-damaged-repair-service.html http://xxx.consolewizard.co.uk/xbox-360-slim-repair/tray-jammed-not-closing-damaged-repair.html
redirect 301 /kes/slim/58-slim-xbox-360-reset-glitch-hack.html http://xxx.consolewizard.co.uk/slim-xbox-360-mods/slim-xbox-360-reset-glitch-hack-rgh.html
redirect 301 /kes/slim/59-slim-xbox-360-open-tray-error-laser-fault-repair-service.html http://xxx.consolewizard.co.uk/xbox-360-slim-repair/slim-laser-open-tray-error-repair.html
redirect 301 /kes/slim/61-slim-xbox-360-dead-no-power-repair-service.html http://xxx.consolewizard.co.uk/xbox-360-slim-repair/slim-360-no-power-dead-repairs.html

 

I truly cannot understand why some urls worked and 90% didnt?

 

I have had to reverse the change and truly hope i dont suffer problems with Google as a result of the weekend offline and then issues with the 301 redirects.

 

Can anybody help me??

 

To summarise 

 

1. Brand New PS 1.6 website to upgrade from original live PS 1.4 site

 

2. Moving website from a Sub Directory to Root on the same Domain.

 

3. Need to redirect old urls from original site to new URLS on the new site.

 

Please help !!!!!

 

Thank you 

 

ScooterCK

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

Redirecting each single page isn't a good way. If you have 1000 products and 100 categories, it would require at least 1'100 redirects.

Better way:

 

Make one general "catch all" redirect in the .htaccess in the root YOUR OLD shop directory.

RewriteEngine on
RewriteRule ^/oldpath/(.*)$  http://newdomain.com/$1 [R=301,L]

To be tested !

 

Keep in mind that the redirect might fail if you change categoriies or products on your new domain. Don't bother too much.

If 90 percent of all redirects go well, its fine.

Link to comment
Share on other sites

Hi Scully

 

Thanks for your reply

 

I'm a little confused with your reply though, that will redirect searches to the /kes subdirectory to the root (new site).

But the new sites categories and product urls are different, due to the old site being on PS1.4 the url was untidy with the category and product numbers being in the url. The new site is 1.6.1.13, so the url is clean and I have also SEO the url for better search hits, so this means the redirect you suggest will redirect to the new site, but then get a 404 as the product / catgeory are different.

 

Hope I explained that correctly??

 

So how would I get around that as my site would start logging 404 errors, which would penalise me on Google.

 

Please help 

 

Scooterck

Link to comment
Share on other sites

I got it know. In this case you had to go the way to redirect each category and each product.

Probably still an option to redirect all requests from your old show to the homepage of your new show.

I don't think you will always get correct results anyway.

 

Imagine you have for example the page number as URL param. If the old categorie contained more products you may get a page number that doesn't exist on the new domain.

Similar problems could occur with other params.

Link to comment
Share on other sites

And what your redirects concerns: When I try to load this page

http://www.consolewizard.co.uk/slim-xbox-360-mods/slim-xbox-360-flashing-i-xtreme-v3-hitachi-lite-on-service.html

I get a 404. So the page does not exist there. I AM MISSING A PRODUCT ID in the URL. PrestaShop uses Product and Category IDs as per default.

If you don't hand them over by redirect, you get errors.

Link to comment
Share on other sites

you can directly point your domain name to sub directory you have setup new prestashop and than just go to seo and url and update base uri which is the new sub dir you set up for it leave everything as it.

I do not understand if both sites are same and on prestashop how you get different url but You can use php to detect your old url and reconstruct a new url based on them if they relate it in any way and than make a 301 to newly constructed url.

thanks

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