How to do this 301 redirection
-
Hi there! I have two domains with the same content. Some guys in this forum posted that It would be convinient to do a 301 redirect from one ".com" domain to ".es" domain (my potential market). I just tried to set it up in the htaccess file but it dind't worked at all.
Something like:
redirect 301 http://wwww.domain.com http://www.domain.es
I just configure in the webmaster tools the domain www.domain.com as preferred domain insted of http://domain.comThe same with the other domain.
Any help?
many thanks
-
Hey Juan,
On the old domain have this in your .htaccess file
RewriteEngine On
RedirectMatch 301 (.*) http://www.domain.es/$1Then you may want a separate HTACCESS rule to forward all traffic without www. to use it
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]I hope that helps, but I have a feeling I may have missed the point of the question. Let me know if I did.
- Andie
-
Try this
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Redirect issue
http://www.themorrisagency.co.uk/wedding-band redirects to http://www.themorrisagency.co.uk/wedding-band-cost-much-hire/ NO canonical in place. Nothing in Htaccess. I cant think where else to look to find it. If I amend it to http://www.themorrisagency.co.uk/we it still redirects. Any ideas? I have spent way too long on it now
On-Page Optimization | | agentmorris10 -
301 or Keep 2 Chocolate Best Sellers SEO?
Hi All, So we have two best selling organic chocolates that are very similar. http://www.santabarbarachocolate.com/bulk-organic-dark-chocolate-72-without-soy-lecithin/ and http://www.santabarbarachocolate.com/bulk-organic-dark-chocolate-72-without-soy-lecithin/ Because we are a small company it would be ideal to offer only one of these chocolates due to the cost of making it from the raw cacao. This is the question: From a SEO page rank perspective, do we get better rank by 301 redirecting one chocolate to the other thereby generating more traffic through traffic consolidation to one chocolate. Or do we get better SEO rank by having two chocolates on the site that both get clicks with different content? Basically it is a question of divided forces. Thanks for your help, Jason
On-Page Optimization | | santabarbarachocolate0 -
Update old article or publish new content and redirect old post?
Hi all, I'm targetting a keyword and we used to rank quite good for it. Last couple of months traffic of that keyword (and variations) is going down a bit. I wrote an extensive new post on the same topic, much more in dept and from 600 to 1800 words covering the same topic. Is it better to update the old article and mention that it's updated recently, or publish a new post and redirect the old post to the new post?
On-Page Optimization | | jorisbrabants0 -
.htaccess redirect chains
At item 4 in the post at http://moz.com/blog/htaccess-file-snippets-for-seos the author recommends combining .htaccess redirects to avoid chaining redirects. I'd be obliged if someone could expand on: 1. What he means by chained redirects 2. How to combine the redirects per his recommendation Cheers.
On-Page Optimization | | ztalk1120 -
Help an SEO-DUMMY : ) Established hyphenated domain...redirect?!...new domain?!
Hello, everybody. I am definitely not an SEO specialist. My family owns a transportation business (since 2010) and i am the one responsible for the website (until we find a good SEO company). My question: Several years ago i did not know much about SEO and have chosen a domain name www.airporttransportation-limo.com (it is not the actual domain...just an example...i'm not sure if i can post the real website here) and another domain that is just the name of our company (it also has hyphen in it). Both websites are still doing good and we receive quite a bit of traffic, but i read more an more about how hyphenated domains and domains with more then two worlds can be bad for your SEO/business/traffic. I feel like the websites are stuck and not moving up any more..could that be because of the hyphens? I registered another domain that is the name of our company (which is well known by now) without any hyphens. Now i have no idea what to do. Should i redirect both old domains (old websites are different and do not have duplicate content) to the new one, or should i just redirect the old domain (just the name of our company with hyphen) to a new one (without hyphen) and leave the www.airportransportation-limo.com as is... Or maybe i should register another domain without any hyphens (two words only) and redirect the www.airporttransportation-limo.com to it... I am very nervous to make any changes and loose all the traffic. My family will kill me. Please help! I'm lost!
On-Page Optimization | | KL20140 -
Temporary redirect - help!
I ran an audit on a new clients website (they did a redesign and fell off of the radar). One of the major issues that the audit came back with was over 6,000 warnings for temporary re-directs. This is a large e-commerce site and I know there will be errors but wondering why the company who did the redesign wouldn't do a 301? Would someone be able to look at this code and tell me if what they did is correct? One of the many pages that has the temporary redirect: http://www.toyotapartsstore.com/index.php?route=checkout/cart&product_id=1 Where all the many pages with errors is redirecting to: http://www.toyotapartsstore.com/index.ph
On-Page Optimization | | KnopfBay0 -
Brand Name URL Redirecting to Actual URL
So we have already built a site under a parent company's URL: parentcompany.com And now we have their branded product lines in directories: parentcompany.com/brand-name1, and parentcompany.com/brand-name2 We also own the actual URL Brand Name 1 (which is also the exact description of the product): brandname1.com We do not yet own the URL for Brand Name 2 (which is also the exact description of the product): brandname2.com. This is because a squatter is sitting on it and is asking $10,000+ for it. What we are trying to determine is how valuable these brand name URLs are since they will be redirecting and not the actual site's primary domain name. Anybody know how much of an effect owning those and redirecting has on ranking for those brand names that are also very descriptive of the products? Would we be smarter to spend $10,000 on adwords or 10,000 on the domain? Thanks!
On-Page Optimization | | grayloon1 -
Keyword cannabilization ... I just cant face 301'ing good, well aged pages
Hi Mozzers Ive read a little about your views on cannabilization and would like to run my situation by you. I have 2 pages lets say (a) and (b) that rank ok for a main keyword. However (a) desite being nice and old is not ageing well and is starting to slip a little - its getting harder to spread the link juice so Ive been thinking should I ditch page (a) and focus solely on page (b) for this keyword. Page (b) seems to be getting better serp value right now. What I find hard is that page (a) has been around a while (6 years) and I cant bring myself to 301 it assuming thats what you would normally do to avoid cannabilization. But at the end of the day its a business page and if its failing - yet could inject even more bounce into page (b) it must be worth considering. What is the best way forward here..? Im not sure how quick any transition of link juice would take ? Also what to do with the unique content on page (a)? Seems such a shame to just ditch it. Cheers fella's Morch
On-Page Optimization | | Morch0