Jump to content

How to Disable the "Set Shop URL" Configuration in PrestaShop and Access Specific Versions Directly?


Gomesam

Recommended Posts

Hi,

I have a PrestaShop setup with multiple versions in subdirectories (e.g., /shop/v1/, /shop/v2/, etc.). The problem I’m encountering is that the configuration under SEO & URLs -> Set shop URL is forcing the redirection to /shop/v/, no matter which version I try to access.

What I want to achieve is:

Disable the automatic redirection.

Be able to directly open any version I wish (e.g., /shop/v1/, /shop/v2/, etc.) by just entering the specific URL.

I have tried:

Commenting out the REWRITEBASE rule in the .htaccess file:
         # RewriteRule . - [E=REWRITEBASE:/shop/v/]

I basically want the configuration in SEO & URLs to stop affecting the URLs, so that I can directly access the version I want without being redirected to /shop/v/.

Has anyone encountered this problem before or have suggestions for a solution?

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