anriuz Posted August 28, 2017 Share Posted August 28, 2017 Need some help with excluding subfolder from redirecting rules in .htacces e.g. example.com is the shop site i want to install crm in example.com/crm (i cant create subdomain crm.example.com - dont have access to domain registration) what i have to write in the .htaccess to avoid rewriting for 'crm' subfolder? Link to comment Share on other sites More sharing options...
Scully Posted August 28, 2017 Share Posted August 28, 2017 (edited) If you create a subdirectory which has nothing to do with existing prestashop path, there is no need to change any .htaccess file. However when installing to separate systems one on webspace I alway recommend to do it this way: prestashop goes into path /prestashoip other-services goes into path /otherservice instead of having one on root level and the other one under the first one. This way you make sure none of the system parts does get in conflicts. The prestashop URL setting still can point to root regardless of your installation directory. If you wan't to have a .htaccess which does nothing - try this AS THE ONLY STATEMENT in the file: RewriteEngine On Edited August 28, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
anriuz Posted August 28, 2017 Author Share Posted August 28, 2017 If you create a subdirectory which has nothing to do with existing prestashop path, there is no need to change any .htaccess file. However when installing to separate systems one on webspace I alway recommend to do it this way: prestashop goes into path /prestashoip other-services goes into path /otherservice instead of having one on root level and the other one under the first one. This way you make sure none of the system parts does get in conflicts. The prestashop URL setting still can point to root regardless of your installation directory. If you wan't to have a .htaccess which does nothing - try this AS THE ONLY STATEMENT in the file: RewriteEngine On Thanks, separate path sound greate. Is there easy way to distinguish it now? Just move to subfolder and change settings in seo/url in backoffice? Link to comment Share on other sites More sharing options...
Scully Posted August 28, 2017 Share Posted August 28, 2017 Yes, you can move the files also after an installation and adapt the SEO / URL settings. However always recommend to make a full backup before proceeding with such an operation. Link to comment Share on other sites More sharing options...
prestahero.com Posted August 28, 2017 Share Posted August 28, 2017 Need some help with excluding subfolder from redirecting rules in .htacces e.g. example.com is the shop site i want to install crm in example.com/crm (i cant create subdomain crm.example.com - dont have access to domain registration) what i have to write in the .htaccess to avoid rewriting for 'crm' subfolder? the problem is example.com/crm matches a rule defined in .htaccess. The solution is you install the system inside a sub/sub/ folder (even sub/sub/sub folder) it won't match the rule and you can keep your Prestashop in your root folder Link to comment Share on other sites More sharing options...
Scully Posted August 28, 2017 Share Posted August 28, 2017 example.com/crm matches a rule defined in .htaccess. Seems you know more than I do. Or have I missed this information? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now