Jump to content

[SOLVED] Usea a sub-directory as root


Champ4!*

Recommended Posts

Hi guys,

 

I need to use a sub-directory as root with Prestashop, I not tried yet, so I need some help from you.

 

I already have a store using Prestashop v1.3.6 working perfectly, the only problem is that Prestashop is installed in a sub-folder called "/cl". Let use an example domain called "foo.com", OK?. So when you enter to my site, you type "www.foo.com", but you are redirected to "www.foo.com/cl" with a PHP redirect (302).

 

What I need is use this folder "/cl" as main directory, so you can surf my site but you will see "www.foo.com/category/103-product" instead of "www.foo.com/cl/category/103-product".

 

I imagine that I will need to set store folder to "/" instead of "/cl" in config, although is installed in "/cl" folder, and make a .htaccess rule setting "/cl" as basedir. Here is my main question, it will be any problem with Prestashop .htaccess? Specially with rewrite rules. Which .htacces will be executed? .htacces from my "/cl" folder with all rewrite rules of Prestashop, .htacces from root directory? both?.

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