Jump to content

How to hide prestashop subfolder on address bar


Recommended Posts

Hi I have installed prestashop in a sub-folder

 

www.mydomain.com/store so the visitors have to enter the whole url to acces the prestashop. I dont want prestashop to be in the root domain.

 

I found this rule for htaccess and works well

 

RewriteEngine on` 

RewriteCond %{HTTP_HOST} ^(www.)?mydomain.ee$

RewriteCond %{REQUEST_URI} !^/prestashop_subdir/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /prestashop_subdir/

RewriteCond %{HTTP_HOST} ^(www.)?mydomain.ee$

RewriteRule ^(/)?$ prestashop_subdir/index.php [L]

 

so now with this settings my visitors access the store using www.mydomain.com (they redirected to the sub-folder)

 

BUT on the addres bar appear (they see) www.mydomain.com/store( The subfolder where prestashop is installed)

 

I just want that my visitors access www.mydomain.com access the store automatically, but don't see the store subfolder on the address bar. (where the prestashop is installed)

 

example:

 

www.mydomain.com (visitor enter on address bar) they be redirected to the store so can access it but on the url they can still see www.mydomain.com

 

PD. I copied the htaccess and index.php from prestashop sub-folder installation to the domain (www.mydomain.com)

 

Any help would be apreciated

Link to comment
Share on other sites

  • 2 weeks later...

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