Jump to content

Close (deactivate) old shop and re-direct to new one


Recommended Posts

Hi,

 

I already moved my shop to another host. Now I want to close (deactivate) my shop on old host and get some kind of re-direction to new address.

 

When I do disable my old shop, customers got message: "In order to perform site maintenance, our online shop has shut down temporarily. We apologize for the inconvenience and ask that you please try again later", nothing more. I would like:

1. As a best solution - automatic re-direction to new address;

2. As a good solution - message with click-able link to new address;

3. As a OK solution - message with new address;

 

How I can arrange it? Please, help.

Link to comment
Share on other sites

why not just do a 301 redirect of the old shop to the new shop (assumption is you are moving to new URL)

 

place this in the .htaccess of the old shop.

 

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://YOUR_NEW_SHOP_URL_GOES_HERE/$1 [R=301,L]

Hi,

Thank you for the advice.

However, I never modified the .htaccess manually:

1. Where I have to put this code?;

2. Should I delete all other from .htaccess?;

3. In .htaccess I see: "PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE". Can I do this modification by BO?;

 

Regards

Link to comment
Share on other sites

what version of ps is your old site?

 

if you are closing your old site, then just put this in the top of your old .htacess, if the old site is 1.4 you can update the .htaccess via the back office...under generators if I remember correctly.

Version is 1.4.6.2

Thus, I can just put

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://YOUR_NEW_SHOP_URL_GOES_HERE/$1 [R=301,L]

to window "Specific configuration" and generate new .htacess?

Thank you.

Link to comment
Share on other sites

perfect...of course replace with your URL....

I did it and got error message:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request."

Both BO and FO do not work.

 

I put old .htaccess, but in vain. I deleted .htaccess - the same error.

What is wrong?

Link to comment
Share on other sites

You need to post exactly what you put in your .htaccess...as you may have not done it correctly.

 

It's possible that mod_rewrite is not installed on your hosting service.

 

Use this code, though if mod_rewrite is not installed, the code will do nothing to achieve your goal.

 

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on 
RewriteRule (.*) http://YOUR_NEW_SHOP_URL_GOES_HERE/$1 [R=301,L]
</IfModule>

Link to comment
Share on other sites

I did it and got error message:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request."

Both BO and FO do not work.

 

I put old .htaccess, but in vain. I deleted .htaccess - the same error.

What is wrong?

Now with old .htaccess it works again. But does not work with modified .htaccess. :(
Link to comment
Share on other sites

You need to post exactly what you put in your .htaccess...as you may have not done it correctly.

 

It's possible that mod_rewrite is not installed on your hosting service.

 

Use this code, though if mod_rewrite is not installed, the code will do nothing to achieve your goal.

It is the modified .htaccess:

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE
# http://www.prestashop.com - http://www.prestashop.com/forums
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.kuzmin.nu/prshop/$1 [R=301,L]
<IfModule mod_rewrite.c>
# URL rewriting module activation
RewriteEngine on
# URL rewriting rules
RewriteRule ^api/?(.*)$ /prshop/webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1-$2$3.jpg [L]
RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1-$2.jpg [L]
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$1$2.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$3/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/c/$1$2.jpg [L]
RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /prshop/img/c/$1.jpg [L]
RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /prshop/product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /prshop/product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /prshop/category.php?id_category=$2&isolang=$1&noredirect=1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /prshop/category.php?id_category=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /prshop/cms.php?isolang=$1&id_cms=$2 [QSA,L]
RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /prshop/cms.php?isolang=$1&id_cms_category=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /prshop/supplier.php?isolang=$1&id_supplier=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /prshop/manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /prshop/img/c/$1$2.jpg [L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /prshop/product.php?id_product=$1 [QSA,L]
RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /prshop/product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /prshop/category.php?id_category=$1&noredirect=1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /prshop/category.php?id_category=$1 [QSA,L]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /prshop/supplier.php?id_supplier=$1 [QSA,L]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /prshop/manufacturer.php?id_manufacturer=$1 [QSA,L]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /prshop/cms.php?id_cms=$1 [QSA,L]
RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /prshop/cms.php?id_cms_category=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /prshop/product.php?id_product=$3&isolang=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /prshop/product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /prshop/category.php?id_category=$2&isolang=$1 [QSA,L]
RewriteRule ^en/404-error$ /prshop/404.php?isolang=en [QSA,L]
RewriteRule ^en/address$ /prshop/address.php?isolang=en [QSA,L]
RewriteRule ^en/addresses$ /prshop/addresses.php?isolang=en [QSA,L]
RewriteRule ^en/authentication$ /prshop/authentication.php?isolang=en [QSA,L]
RewriteRule ^en/best-sales$ /prshop/best-sales.php?isolang=en [QSA,L]
RewriteRule ^en/cart$ /prshop/cart.php?isolang=en [QSA,L]
RewriteRule ^en/contact-us$ /prshop/contact-form.php?isolang=en [QSA,L]
RewriteRule ^en/discount$ /prshop/discount.php?isolang=en [QSA,L]
RewriteRule ^en/guest-tracking$ /prshop/guest-tracking.php?isolang=en [QSA,L]
RewriteRule ^en/order-history$ /prshop/history.php?isolang=en [QSA,L]
RewriteRule ^en/identity$ /prshop/identity.php?isolang=en [QSA,L]
RewriteRule ^en/manufacturers$ /prshop/manufacturer.php?isolang=en [QSA,L]
RewriteRule ^en/my-account$ /prshop/my-account.php?isolang=en [QSA,L]
RewriteRule ^en/new-products$ /prshop/new-products.php?isolang=en [QSA,L]
RewriteRule ^en/order$ /prshop/order.php?isolang=en [QSA,L]
RewriteRule ^en/order-follow$ /prshop/order-follow.php?isolang=en [QSA,L]
RewriteRule ^en/quick-order$ /prshop/order-opc.php?isolang=en [QSA,L]
RewriteRule ^en/order-slip$ /prshop/order-slip.php?isolang=en [QSA,L]
RewriteRule ^en/forgot-your-password$ /prshop/password.php?isolang=en [QSA,L]
RewriteRule ^en/specials$ /prshop/prices-drop.php?isolang=en [QSA,L]
RewriteRule ^en/search$ /prshop/search.php?isolang=en [QSA,L]
RewriteRule ^en/sitemap$ /prshop/sitemap.php?isolang=en [QSA,L]
RewriteRule ^en/stores$ /prshop/stores.php?isolang=en [QSA,L]
RewriteRule ^en/suppliers$ /prshop/supplier.php?isolang=en [QSA,L]
RewriteRule ^en$ /prshop/en/ [QSA,L]
RewriteRule ^en/([^?&]*)$ /prshop/$1?isolang=en [QSA,L]
RewriteRule ^sv/404-error$ /prshop/404.php?isolang=sv [QSA,L]
RewriteRule ^sv/direccion$ /prshop/address.php?isolang=sv [QSA,L]
RewriteRule ^sv/direcciones$ /prshop/addresses.php?isolang=sv [QSA,L]
RewriteRule ^sv/autenticacion$ /prshop/authentication.php?isolang=sv [QSA,L]
RewriteRule ^sv/best-sales$ /prshop/best-sales.php?isolang=sv [QSA,L]
RewriteRule ^sv/carro-de-la-compra$ /prshop/cart.php?isolang=sv [QSA,L]
RewriteRule ^sv/contact-us$ /prshop/contact-form.php?isolang=sv [QSA,L]
RewriteRule ^sv/descuento$ /prshop/discount.php?isolang=sv [QSA,L]
RewriteRule ^sv/guest-tracking$ /prshop/guest-tracking.php?isolang=sv [QSA,L]
RewriteRule ^sv/historial-de-pedidos$ /prshop/history.php?isolang=sv [QSA,L]
RewriteRule ^sv/identidad$ /prshop/identity.php?isolang=sv [QSA,L]
RewriteRule ^sv/manufacturers$ /prshop/manufacturer.php?isolang=sv [QSA,L]
RewriteRule ^sv/mi-cuenta$ /prshop/my-account.php?isolang=sv [QSA,L]
RewriteRule ^sv/new-products$ /prshop/new-products.php?isolang=sv [QSA,L]
RewriteRule ^sv/carrito$ /prshop/order.php?isolang=sv [QSA,L]
RewriteRule ^sv/devolucion-de-productos$ /prshop/order-follow.php?isolang=sv [QSA,L]
RewriteRule ^sv/quick-order$ /prshop/order-opc.php?isolang=sv [QSA,L]
RewriteRule ^sv/vales$ /prshop/order-slip.php?isolang=sv [QSA,L]
RewriteRule ^sv/forgot-your-password$ /prshop/password.php?isolang=sv [QSA,L]
RewriteRule ^sv/specials$ /prshop/prices-drop.php?isolang=sv [QSA,L]
RewriteRule ^sv/buscar$ /prshop/search.php?isolang=sv [QSA,L]
RewriteRule ^sv/sitemap$ /prshop/sitemap.php?isolang=sv [QSA,L]
RewriteRule ^sv/tiendas$ /prshop/stores.php?isolang=sv [QSA,L]
RewriteRule ^sv/suppliers$ /prshop/supplier.php?isolang=sv [QSA,L]
RewriteRule ^sv$ /prshop/sv/ [QSA,L]
RewriteRule ^sv/([^?&]*)$ /prshop/$1?isolang=sv [QSA,L]
</IfModule>
# Catch 404 errors
ErrorDocument 404 /prshop/404.php
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
</IfModule>
FileETag INode MTime Size
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

http://www.kuzmin.nu/prshop/ - Is a new address

Link to comment
Share on other sites

The method (301) redirect is the preferred method. Don't give up on that.

 

http://support.googl...en&answer=83105

 

Using the previous (last post) I gave you try until you get it working.

1. Should I erase all from my .htaccess file and write only your code?
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://YOUR_NEW_SHOP_URL_GOES_HERE/$1 [R=301,L]
</IfModule>

2. Or I should add your code to window "Specific configuration" and generate new .htacess?

Link to comment
Share on other sites

1. Should I erase all from my .htaccess file and write only your code?

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://YOUR_NEW_SHOP_URL_GOES_HERE/$1 [R=301,L]
</IfModule>

2. Or I should add your code to window "Specific configuration" and generate new .htacess?

 

you would only need this code in your .htaccess file

  • Like 1
Link to comment
Share on other sites

Now nothing works again:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."

 

I returned old .htaccess file, and all work as before.

Edited by leonidnk (see edit history)
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...