Jump to content

Some Back Office links do not respect Base URI - Repost


joaovidal

Recommended Posts

This is a repost. The original is at "Community Help and Support -> PrestaShop Download -> Configuring and using PrestaShop", but I figure it makes more sense in Bugs.

 

I have Prestashop 1.7.8.4 installed inside a folder. My goal is to hide the folder from the URL. The server is Apache.

From the Back Office, I configured Prestashop's Base URI to be '/' and put a htaccess file at the domain root redirecting to that folder.

This is the htaccess at the domain root, redirecting to 'ps178':

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

RewriteCond %{REQUEST_URI} !^/ps178
RewriteRule ^(.*)$ /ps178/$1 [L]

 

In the Front Office the link/urls don't show the folder anymore. However most links in the Back Office still have the folder name in the URL, meaning that the Back Office 'engine' is not fully respecting the Base URI. Everything in the Back Office seems to be working fine, nonetheless.

Here are some examples. For instance, inside SELL the following are the links that don't show the folder name. All others still do.

Orders -> Shopping Carts

Catalog -> Attributes & Features

Catalog -> Discounts

Customer Service -> Customer Service

Customer Service -> Merchandise Returns

Stats -> Stats

Stats -> PrestaShop Metrics

 

Has anyone experienced this? Is this a bug or I'm doing something wrong maybe?

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