eleganteza Posted May 12, 2017 Share Posted May 12, 2017 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 More sharing options...
Simonas Invertus Posted May 26, 2017 Share Posted May 26, 2017 You can decide where you want to point your domain in domain management panel. Also don't forget that if you change your url, you also have to change configuration in PrestaShop or it might not work. 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