Thordan Posted April 23, 2012 Share Posted April 23, 2012 Our Prestashop store directory is www.mycompany/store and we have our main webpage running under a Concrte5 CMS site with a link to the store. The main page has friendly url's enabled and is working fine - however the Prestshop store site is not working right when url rewriting is enabled. I created .htaccess file under SEO - the file is however placed in the /store folder of public.html from the PS generator. I tried to fix this by combining the .htaccess file under the main directory but it did not resolve the issue and I end up with random 404 pages when going on a product pages. I tried this also with disable Apache multiviews - no difference. The main page (Concrete5) only has these entries in the .htaccess file - which I left in the front before placing the PS lines afterwards in my testing. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] By now I tried everything I could think of and hope that someone can point me in the right direction - thank you much. Link to comment Share on other sites More sharing options...
phrasespot Posted April 24, 2012 Share Posted April 24, 2012 Rules for the CMS are at odds with the rules PS generator generates, and vice versa. It will be the case whatever you put first in .htaccess. You will need to handcraft a .htaccess file to notice PS URLs and redirect to sub directory. This is going to be very involved (there are clashing filenames between two packages) and load the server as well with rewrite processing. An easier option would be to create a subdomain store.mycompany.tld and move the PS there. Link to comment Share on other sites More sharing options...
Thordan Posted April 25, 2012 Author Share Posted April 25, 2012 Thanks much for the reply and suggestions. I played with this some more and think/hope that I got the right combination in the .htaccess file now. So far I have not encountered problems anymore in PS or our main CMS page - but I will give it some more time/testing. Is a subdomain considered better practice? Any other considerations to make the switch from folder to subdomain worthwhile? Thanks. Link to comment Share on other sites More sharing options...
phrasespot Posted April 25, 2012 Share Posted April 25, 2012 Thanks much for the reply and suggestions. I played with this some more and think/hope that I got the right combination in the .htaccess file now. So far I have not encountered problems anymore in PS or our main CMS page - but I will give it some more time/testing. Great Is a subdomain considered better practice? Any other considerations to make the switch from folder to subdomain worthwhile? Thanks. I prefer subdomains as it allows me to manage/treat site content and shop content as separate entities. Read it straight from the horse's mouth and decide what is best for your setup. 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