I'm looking to 301 redirect my old site to my new one. The thing is that i have hundreds of pages so i was wondering if its possible to use some sort of wild card for the domain part? I'm going to use the exact site structure and urls for the new site.
here's example of how the URL's are going to look
http://www.example-old.com/articles >> http://www.example-new.com/articles
http://www.example-old.com/blogs >> http://www.example-new.com/blogs
http://www.example-old.com/blogs/1.php >> http://www.example-new.com/blogs/1.php
What i'm hoping to do is when someone clicks on any link from the old site they will be redirected to the same page on the new site. i.e.just the domain part will change and the rest of the url will remain will be the same.
Any help is appreciated!
Thanks
if I have a subdomain named abc.aaa.com
and now i have move to aaa.com/abc
more my server admin has help me to make a redirect on abc.aaa.com to aaa.com/abc
so no matter access which page/section/file in abc.aaa.com it will force to the HOME PAGE
of aaa.com/abc
therefore i cant use robots.txt to disallow the subdomain
and even i cant submit to both yahoo and google webmaster
any idea?
Redirecting the subdomain is the correct course of action. You don't want to use robots.txt. If you did, googlebot couldn't crawl it anymore and see that it now resides in a new home.
Your redirect sounds problematic though. You should not be redirecting everything to the home page. You should be redirecting each document to the new location of that document. When you redirect to the home page, Google considers the redirect to be about the same as a 404. They call it a "soft 404". Redirecting to homepage will lose any search engine rankings those pages have and lose any credit you have for inbound links coming into that sub-domain.
Having implemented the redirect without robots.txt, both Google and Yahoo will pick up on the move. It should happen within a couple weeks. There is no need for you to take further action.
We have CMS and requests for removed / inactive pages returns http code 404 not found, IMO that is right thing to do or maybe use http status 410 gone. One of our clients hired SEO expert, and they are demanding that removed / inactive pages are redirected to front page with http code 301.
Since 301 is permanent redirect, I am worried what would happen when such pages are activated ? Is that a problem from SEO point of view ?
301, as you mention means "Permanent Redirect"
It should be used when the content of the page has been moved to another location. This tells people who link to that page, that they should be linking the new page instead, and theoretically there would be no difference. Major search engines understand this as well.
So, from an SEO perspective, 301 is a better thing to do, because the search engines can find the "new page" But if you don't have a "new page", redirecting them to the home page is bad form (IMO). Search engines could decide never to scrape a page that once had a 301, and you would then be worse off if the page ever comes back.
I think a better result would be to effectively leave the page, but to state that the product they are looking for is not currently available.
The 301 will transfer the index to the home page, which is good.
It's better to 301 those missing pages to the most relevant page on the website, and not just the home page.
e.g. if it's a product that is no longer supported, redirect to that products category page or a similar product.
We have #1 and #2 spots we would like to keep, but because of the way things were jumbled we have to migrate to a new domain.
We do not want the new domain to be penalized for duplicate content, we want it to naturally take the spot on Google.
How do we tell Google our page has moved?
301 redirects are the recommended way to do this according to Google themselves. I tend to perform 301's using a .htaccess file (a few different methods here) but it can also be done using PHP like this:
header('Location: '.$newlocation, true, 301)
What seengee user has answered is perfect.
Have a look to Google Webmaster Tools too; there's a specific option for Address change.
Change of address
If you're planning to move your site to a new domain, use the Change of Address tool to tell Google about your new URL. This will help us update our index faster and smooth the transition for your users.
For best results, follow these steps:
Set up the new site
Review our guidelines for moving your site to a new domain. Set up your content on your new domain, then make sure all internal links point to the new domain.
Redirect all traffic from the old site
Use a 301 redirect to permanently redirect the pages on your old site to your new site. This tells users and search engines that your site has permanently moved. Ask webmasters to update their links to point to your new domain and make sure incoming links to your old site are redirected correctly using the 301 redirects.
Add your new site to Webmaster Tools
Make sure you have added and verified your new domain.
Tell us the URL of your new domain
Try this: https://www.google.com/webmasters/tools add both domains there and then, go Change of address.
Http 301 Request is used for Permanent Redirect the old website's content,URL and Links to New Website URL. Google Never Penalize the New Website for Duplicate content.
what about "Keyword" you use in meta for performing in SERP result. After redirection how you manage them.
position before Redirection , after redirection have same OR not.
AS SEO purpose don't make Redirection withour proper plan. First make proper optimization of "B" page before "A" redirect ( 301, 302 ) "B" page.
Dont make 302 Redirect , its spammy after 3 months, why within 20 Days SERP catche show "B" page instead of "A" page.
in the end : Before Redirection - Optimize the Destination URl - for Benefit SEOand business
Have a Nice Day ... Thanks
Google itself detect your web page if you implemented the 301, 302 or 404 redirection. But if you want to tell google that you have moved your page then:
Go to google webmaster tool
In Crawl section there is an option of Fetch as Google.
Just enter your url and check the fetch status, you will find that google will index your new url.
in google webmaster tools click on change of site address.
firstly you need to put content on new website where you want to redirect the website.
redirect usingold website by using HTTP 301 code and after verify in google webmaster tools.
Do 301 redirects. This will tell the search engines that the pages have moved and where they are now. This also associates the old URL with the new URL for Google which means all of your old incoming links will now be redirects to your new pages. Also use Google Webmaster Tools to submit XML sitemap.
In both Google and Bing Webmaster tools, you can notify a change of address. I will warn you, however, that when changing domains, you're not going to keep your current rankings.
Submit a change of address notice in Webmaster tools
Do 1:1 page redirecting (redirect all other pages that can't be mapped to a similar page to your homepage)
Submit an up-to-date sitemap
This should help:
https://support.google.com/webmasters/answer/83106?hl=en
http://moz.com/blog/achieving-an-seo-friendly-domain-migration-the-infographic
My site assigns each user a fake subdomain along the lines of
http://username.mysite.com/
which redirects to
http://mysite.com/shop/username
The second link is the one used internally, is assigned as link rel="canonical", and what I want to display in the browser as the correct url, the subdomain is basically just a convenience for my users.
The question is whether 301 is appropriate in this scenario? A 301 redirect is used for a link that now points elsewhere permenantly, which implies that the old link is deprecated. My concern is that I will attract bad SEO juju by using a 301 redirect whilst still advocating / promoting the use of the old link.
Yes, 301 is the correct choice here as search engines will index the final URL rather than the subdomain. I've never heard of any penalty for having too many 301 redirects. Other redirect types less accurately described what you're looking for (temporarily moved, etc.).