Emilll Posted August 3, 2016 Share Posted August 3, 2016 Hi Right now I have a site called www.koksredskap.com, we want to change the domain name into www.foodgilla.se but we dont want to loose SEO power and we want to send everyone who search on www.koksredskap.com get sent to the new domain. Also if the customer search for www.koksredskap.com/product1 then they will be sent to www.foodgilla.se/product1 etc, Is there a simple way to do this with .htacess with rules and how do i set it up? Link to comment Share on other sites More sharing options...
El Patron Posted August 3, 2016 Share Posted August 3, 2016 Hi, I'm not expert but when I moved my shop from eTiendas.co to PrestaHeroes.com and after research I used this Note, my shop is full https, and would not work properly for target shop without or with partial https. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^etiendas\.co$ [OR] RewriteCond %{HTTP_HOST} ^www\.etiendas\.co$ RewriteRule (.*)$ https://www.prestaheroes.com/$1 [R=301,L] </IfModule> Link to comment Share on other sites More sharing options...
Emilll Posted August 4, 2016 Author Share Posted August 4, 2016 Thank you, I´m planning on getting https when i have changed domains, but I dont have it right now, so I guess thats an issue then? Link to comment Share on other sites More sharing options...
El Patron Posted August 4, 2016 Share Posted August 4, 2016 Thank you, I´m planning on getting https when i have changed domains, but I dont have it right now, so I guess thats an issue then? in example given, simply change to http Link to comment Share on other sites More sharing options...
Emilll Posted August 10, 2016 Author Share Posted August 10, 2016 So like this? <IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{HTTP_HOST} ^koksredskap\.co$ [OR]RewriteCond %{HTTP_HOST} ^www\.koksredskap\.co$RewriteRule (.*)$ https://www.foodgilla.se/$1 [R=301,L]</IfModule> Because it doesnt work for me, im suppose to change the htaccess file in the rootmap of the webbshop, correct? Link to comment Share on other sites More sharing options...
El Patron Posted August 10, 2016 Share Posted August 10, 2016 So like this? <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^koksredskap\.co$ [OR] RewriteCond %{HTTP_HOST} ^www\.koksredskap\.co$ RewriteRule (.*)$ https://www.foodgilla.se/$1 [R=301,L] </IfModule> Because it doesnt work for me, im suppose to change the htaccess file in the rootmap of the webbshop, correct? This should be only thing in your old domain .htaccess file. Also change https to http if you are not using ssl. Link to comment Share on other sites More sharing options...
Emilll Posted August 10, 2016 Author Share Posted August 10, 2016 But how do i add the file to the old domain? I mean we have the new and the old on the same server/same root Link to comment Share on other sites More sharing options...
El Patron Posted August 10, 2016 Share Posted August 10, 2016 Oh, ok...I see. Most webhosting back offices allow you to fwd (301) one domain to another...that may be good option for you. Else you would put the directs above into the top of the new domains .htaccess. 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