grammer Posted October 10, 2016 Share Posted October 10, 2016 I have a domain A and installed prestashop there. It is already working there. I bought domain B and C, with different name, but totally same content. I do not care about logo. Only domain name. When user accesses from domain B, I would like the URL to stay the same — the domain B. How do I modify htaccess? Right now if I access from B/some_url/, then it redirects to A/en/. What I have: RewriteEngine on DirectoryIndex index.php index.html index.htm Options +FollowSymLinks RewriteBase / RewriteCond %{HTTP_HOST} ^websiteone.com$ [NC] RewriteCond %{REQUEST_URI} !^/websiteone/prestashop/.*$ RewriteRule ^(.*)$ /websiteone/prestashop/$1 [L] RewriteCond %{HTTP_HOST} ^websiteone.eu$ [NC] RewriteCond %{REQUEST_URI} !^/websiteone/prestashop/.*$ RewriteRule ^(.*)$ /websiteone/prestashop/$1 [L] RewriteCond %{HTTP_HOST} ^websitethree.com$ [NC] RewriteCond %{REQUEST_URI} !^/websiteone/prestashop/.*$ RewriteRule ^(.*)$ /websiteone/prestashop/$1 [L] 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