Jump to content

htaccess - prestashop v8.1.6 does not seem to work correctly.


Recommended Posts

htaccess - prestashop v8.1.6 does not seem to work correctly.

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^myshop\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} ^/eshop/?$ [NC]
RewriteRule ^(.*)$ https://eshop.myneweshop.co.uk/$1 [L,R=301]

myshop.co.uk redirects ok to https://eshop.myneweshop.co.uk

myshop.co.uk/eshop redirects ok to https://eshop.myneweshop.co.uk

However any subdirectory or file from myshop.co.uk/eshop like myshop.co.uk/eshop/contact_us comes up with the original contact-us page, and it does not do any redirecting.

Any ideas where I am going wrong ??

Link to comment
Share on other sites

36 minutes ago, gray said:

However any subdirectory or file from myshop.co.uk/eshop like myshop.co.uk/eshop/contact_us comes up with the original contact-us page, and it does not do any redirecting.

just redirect the original contact-us page to the page you'd like to use.

Link to comment
Share on other sites

From the htaccess file everything beyond myshop.co.uk/eshop should redirect to eshop.myneweshop.co.uk but it does not work.

So the likes of contact page myshop.co.uk/eshop/contact_us , product pages, category pages and admin etc etc are still displayed in the old shop myshop.co.uk/eshop .

Either PS is stopping redirects or my hosting server is ??

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