What is the proper way to execute 'page to page redirection'
-
I need to redirection every page of my website to a new url of another site I've made.
I intend to add:"Redirect 301 /oldpage.html http://www.example.com/newpage.html"I will use the 301 per page to redirect every page of my site, but I'm confused that if I add:"Redirect 301 / http://mt-example.com/" it will redirect all of my pages to the homepage and ignore the URLs i have separately mentioned for redirection.Please guide me.
-
Richard is correct. Redirects are handled in the htaccess file in the order in which they are presented. Put your most specific redirects first, your least specific redirects last.
-
Your second example will work for the homepage only really. I think the problem here is the order and if you're going to use that rewrite, use it last in the file. The problem with this type of redirect is that if you use it early, what will typically happen is it will redirect the domain but then create a broken link like olddomain.com/abc redirects and becomes newdomain.comabc creating a broken url.
-
Hey Nighat,
If you're on Wordpress, you can use this plugin. I would suggest you to assign this talk to your developer if you're doing this first time because this can create lots of problems for your site if not done correctly.
Please refer to these resources for better and clear understanding of each phase:
https://moz.com/learn/seo/redirection
http://searchenginewatch.com/sew/how-to/2377744/your-guide-to-301-redirects-for-seo
http://blog.hubspot.com/insiders/how-to-create-301-redirectsHope this helps!
Umar
-
I do not quite understand your question .. perhaps because I use the translator google..ja ja ..!!
Sorry but my English is not very good ..
the most important thing to do 301 redirects is them each separately to the new page of the new site
in case you have some pages of the old site that does not correspond to the new site, you should try to make a page the most relevant and similar to the old pageCheers!!
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
-
What's the best way of crawling my entire site to get a list of NoFollow links?
Hi all, hope somebody can help. I want to crawl my site to export an audit showing: All nofollow links (what links, from which pages) All external links broken down by follow/nofollow. I had thought Moz would do it, but that's not in Crawl info. So I thought Screaming Frog would do it, but unless I'm not looking in the right place, that only seems to provide this information if you manually click down each link and view "Inlinks" details. Surely this must be easy?! Hope someone can nudge me in the right direction... Thanks....
Intermediate & Advanced SEO | | rl_uk0 -
Google webcache of product page redirects back to product page
Hi all– I've legitimately never seen this before, in any circumstance. I just went to check the google webcache of a product page on our site (was just grabbing the last indexation date) and was immediately redirected away from google's cached version BACK to the site's standard product page. I ran a status check on the product page itself and it was 200, then ran a status check on the webcache version and sure enough, it registered as redirected. It looks like this is happening for ALL indexed product pages across the site (several thousand), and though organic traffic has not been affected it is starting to worry me a little bit. Has anyone ever encountered this situation before? Why would a google webcache possibly have any reason to redirect? Is there anything to be done on our side? Thanks as always for the help and opinions, y'all!
Intermediate & Advanced SEO | | TukTown1 -
Is there a way to forward banklink benefits from one domain to another without a redirect?
In this situation I have SiteA, and SiteB on completely separate domains. SiteA is the marketing front for the company and SiteB is an app that company owns. SiteB receives a fair amount of backlinks as it has the login page of the application where customers link to a branded version for their members to login. Additionally none of that domain is indexable including the login page. SiteB's domain can't be changed to be a subdomain of SiteA as it isn't technically feasible. Initially I was reluctant to use canonical because as it isn't really duplicate content. Is there a method for forwarding any link-juice from SiteB to SiteA without the use of a redirect and would canonical be appropriate in this case? Additionally would SiteB's not being indexed negate any link benefit? Edit: Typo
Intermediate & Advanced SEO | | OCN0 -
301 Redirect Only Home Page/Root Domain via Domain Registrar Only
Hi All, I am really concerned about doing a 301 redirect. This is my situation: Both Current and New Domain is registered with a local domain registrar (similar to GoDaddy but a local version) Current Domain: Servers are pointing to Wix servers and the website is built and hosted with Wix I would like to do a 301 redirect but would like to do it in the following way with a couple of factors to keep in mind: 99% of my link are only pointed to the home page/root domain only. Not to subdirectories. New Domain: I will register this with wix with a new plan but keep the exact sitemap and composition of current website and launch with new domain. Current Domain: I want to change server pointing to wix to point to local domain registrar servers. Then do a 301 redirect for only the home page/root domain to point to the new domain listed with wix. So 301 is done via local registrar and not via Wix. Another point to mention is it will also change from Http to Https as well as a name change. Your comments on the above will be greatly appreciated and as to whether there is risk in trying to do a 301 redirect as above. Doing it as above it also cheaper if I do the 301 via the wix platform I will need to register a full new premium plan and run it concurrently to the old plan whereas if I do it as mentioned above will only have the additional domain annual fee. Look forward to your comments. Mike
Intermediate & Advanced SEO | | MikeBlue10 -
Htaccess - Redirecting TAG or Category pages
Hello Fellow Moz's, We have an issue redirecting some /TAG and /Category pages to inner pages. As an example we use: RedirectMatch 301 /category/Sample-Category(.*) https://OurDomain.com.au/New-Page//$1 That works well. The issue is we have other categories and tags that are named similar to /Sample-Category As an example, if we try to redirect /Sample-Category-1 to /New-Page-1 - it will not work, and redirects to /New-Page I assume this is because /Sample-Category is already being redirected, so anything after /Sample-Category like -1 or -2 or -3 etc, will not be recognized. Anyone know of a workaround?
Intermediate & Advanced SEO | | Jes-Extender-Australia0 -
Category Page as Shopping Aggregator Page
Hi, I have been reviewing the info from Google on structured data for products and started to ponder.
Intermediate & Advanced SEO | | Alexcox6
https://developers.google.com/search/docs/data-types/products Here is the scenario.
You have a Category Page and it lists 8 products, each products shows an image, price and review rating. As the individual products pages are already marked up they display Rich Snippets in the serps.
I wonder how do we get the rich snippets for the category page. Now Google suggest a markup for shopping aggregator pages that lists a single product, along with information about different sellers offering that product but nothing for categories. My ponder is this, Can we use the shopping aggregator markup for category pages to achieve the coveted rich results (from and to price, average reviews)? Keen to hear from anyone who has had any thoughts on the matter or had already tried this.0 -
Move Pages From One Domain To Another - The SEO Friendly Way
Hi All, One of our clients is a hair salon, that's currently dividing into two separate entities. For over 10 years the hair salon has been for both men and women, but that's now changing. The company is splitting into two, the original website contains pages for both men and women, but will soon only contain pages for women's hairdressing. The problem I have here is that there's probably around 20-30 service pages that get really great, targeted traffic on the men's side. There's a brand new domain for the men's hairdressing company and I'd like to know how you'd go about retaining the SEO value instead of just culling the pages. I'm thinking that we should maybe take the content from the original website, re-write it slightly to match the new brand, add it to the new website and then 301 the pages on the original website across to the new website. Has anyone had any experience in doing something like this before? and will the SEO value move across to the new domain? Also, I'm scared that the internal pages of the new domain may hold more authority than the home page and could cause problems. Any ideas on this would be great.
Intermediate & Advanced SEO | | Townpages0 -
How does the crawl find duplicate pages that don't exist on the site?
It looks like I have a lot of duplicate pages which are essentially the same url with some extra ? parameters added eg: http://www.merlin.org.uk/10-facts-about-malnutrition http://www.merlin.org.uk/10-facts-about-malnutrition?page=1 http://www.merlin.org.uk/10-facts-about-malnutrition?page=2 These extra 2 pages (and there's loads of pages this happens to) are a mystery to me. Not sure why they exist as there's only 1 page. Is this a massive issue? It's built on Drupal so I wonder if it auto generates these pages for some reason? Any help MUCH appreciated. Thanks
Intermediate & Advanced SEO | | Deniz0