301 Problem
-
Hi Guys,
Just have a small problem with a htaccess 301 redirect.
I would like to 301:
www.old-domain.com & old-domain.com
to
The site is exactly the same with the same directory structure so i would also like all the subpages to work. Eg:
www.old-domain.com/folder/page & old-domain.com/folder/page
to
www.new-domain.com/folder/page
Many thanks
-
Great. Thankyou.
-
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]Source:
http://301redirects.net/redirect-old-domain-to-new-website.php
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
-
Site has 302 redirects for HTTP to HTTPS when it should be 301
Hey all, In the latest Moz crawl, certain pages on our website have shown as having 302 redirects for the http to https, but not all. There should be a 301 solution, but wanted to see if anyone had any advice or guidance. Thanks!
On-Page Optimization | | Julzseo1 -
After HTTPS upgrade, should I change all internal links, or a general 301 redirect is better?
I recently upgraded to https. Of course most internal links of my old posts are still http. So I set up a 301 redirect in order to make the old link works. In terms od SEO this is good or it is better to update all the internal links to https, manually? In that case can I do it in batch with a search/replace command in the phmyadmin database? any other suggested method? thank you
On-Page Optimization | | micvitale0 -
Problem with meta title
My web is http://www.canexel.es, is supported by wordpress and I'm having some problems with the meta title. Google SERPS shows “Canexel: Casas de madera canadienses“ when I config the snipped to show “Casas de Madera canadienses – Canexel” I use SEO yoast plugin. I dont know why it is showing the name of the company followed by a colon at the beginning. The home page is the only one that is having that problem. Thx!
On-Page Optimization | | Canexel0 -
301 Redirects From a URL without Keyphrases to one With Keyphrases
I have a client that sells services. Each service offered currently has a URL structure like this: www.companyname.com/product/asp$view-id-page3022-item-24 These pages are pretty old, and I would love to have a more user-friendly URL like this: www.companyname.com/product/purple-swatch-watch If I rename the URL and do a 301 redirect, what impact will that have on search? Ideally, this page will be optimized for "purple swatch watch", but the current URL structure is so... well, you know. My apologies if this has been answered before. I tried looking through archived of 301 issues, but lost hope after my first 10 or so attempts at answered didn't help this specific issue.
On-Page Optimization | | ericav0 -
301 redirected Duplicate Content, still showing up as duplicate after new crawl.
We launched a site where key landing pages were not showing up in google. After running the seomoz crawl it returned a lot of duplicate pages which may expalin this. The actual url of the page is /design and it was telling me the following were dupes: /design/family-garden-design
On-Page Optimization | | iterate
/design/small-garden-design
/design/large-rural-garden-design
/Design All of these URL's were in fact pointing to the /design landing page. I 301 redirected all of the pages so they all now resolve to /design After running another crawl the day after doing this it's still showing up as duplicate content on seomoz. Does seomoz evaluate the new changes right away?0 -
One of my Campaigns have a problems!
Last week my Campaign "De Prevención" crawled many pages, and sudenly, only crawled one???? Canyou help me.
On-Page Optimization | | ClaritaMurcia0 -
Google found bad links delete them or 301 redirect?
we went into our google account and saw about 70 bad links that they found on our site. what's the best thing to do, seo-wise: should we go into the pages that have the bad links and delete them from the html code, or re-direct them in our htaccess script?
On-Page Optimization | | DerekM880 -
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