Do I need to do a 301, as well as adding re-write rules on Apache
-
I'm sure this has probably been asked somewhere before...
We're implementing a URL re-write rule to convert non dub pages to the www. subdomain and also removing all trailing slashes as part of a basic canonicalisation exercise.
The question is, as well as doing the URL rewrites within htaccess, should I also 301 those duplicate pages or does the URL rewrite do the job on it's own?
Thanks mozzers.
-
Eric's answer was perfect. After launch, I also do a site:nameofdomain.com and click on a random sampling of links to make sure the rules work perfectl (this is more useful if the page name changes). Good luck!
-
The URL rewrite "should" take care of it. So, when you enter www.domain.com/page.html it would 301 redirect to domain.com/page.html (or vice versa). Once you have the rewrites in place, then test them by going to a page and see if it redirects properly. Use a http server header checker to see if it's serving up a 301.
Even though the internal links may be using your preferred domain, then you'll want to make sure that anyone requesting (or linking to) the "wrong version" will be 301 redirected to the right version of the page.
Also, I would go into Google Search Console and make sure you tell Google which version is your preferred version: the www or non-www version of your site.
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
-
301 redirect impact on ranking
If Website A is ranking 19th position in Google for a specific keyword, and Website B is ranking 30th position for the same keyword, What would be impact after 301 redirect? Will Website A drop to 30th position because of 301 or existing position would improve because of link juice?
Intermediate & Advanced SEO | | riyaaaz0 -
Need advice and smart solution for H1
Hi! I've been quite a long time trying to find a solution to the html structure of a webpage that I'am auditing right now. But I need your valuable help! The problem is the following: Actually, they have different sections inside. The structure is something like this Masters - Degrees - Programs - About us - News And if you go to the Masters Section you will find something like this Masters Master number 1 in Tourism (brand.com/master/master-number-1-tourism) Presentation
Intermediate & Advanced SEO | | teconsite
(brand.com/master/master-number-1-tourism) Objectives
(brand.com/master/master-number-1-tourism/objectives) Professional opportunites
(brand.com/master/master-number-1-tourism/professional-opportunities) Faculty
(brand.com/master/master-number-1-tourism/faculty) Qualification
(brand.com/master/master-number-1-tourism/qualification) Financial
(brand.com/master/master-number-1-tourism/financial) Master number 2 with a long name Presentation Objetives Profesisional opportunities Faculty ... Master number 3 in Sports and so on The Degrees section, has inside exactly the same structure with the same names. My doubt is related with the use of h1 tag What would be the best h1 strategy for each content page? Each master has 6 pages (presentation, objectives, faculty,...) For page Objetives,
brand.com/master/master-number-1-tourism/objectives If I choose to use as H1 just the word Objetives, what will happen is that I will have a lot of pages (one per master, degree or program), with the same H1, because each master will have its own page Objectives. If we have 10 masters + 10 degrees + 2 programs y will have 22 pages with the same H1 Objecives If I choose to use as H1 the following: "Objectives of the Master Number 1 in Tourisim and so on with long name" it will be difficult for the users to visually see the difference between the different pages. for instance Objectives of the Master Number 1 in Tourisim and so on with long name and Faculty of the Master Number 1 in Tourisim and so on with long name because they only differ in one word. What do you think of this solution? Objectives Master Number 1 in Tourisim and so on with long name is it correct to do this inside the h1? or would you use combinations of h1 and h2 like these
h1: Objectives
h2: Master Number 1 in Tourisim and so on with long name would be this appropiate?0 -
How to get a page re-crawed quickly
Does anyone know a way to get Google to re-crawl a webpage that does not belong to me. There are a bunch of pages that I have had links removed on and I want Google to re-crawl those pages to see the links have been removed. (current wait time is way way too long) Can anyone suggest some ways to get the page re-crawled. (I am unable to get the website owners to use WMT to do anything). Suggestions like good ping services and various other techniques would be very much appreciated. Thanks
Intermediate & Advanced SEO | | gazzerman10 -
Need help for improving SEO App?
Please refer our guru99 https://play.google.com/store/apps/details?id=com.vector.guru99&hl=en We have tons of free materials related to SAP in the app. The problem we are facing is we do not rank for terms like SAP or SAP tutorial and discovery is an issue I have searched over the internet and found no concrete solution. Can you experts help ?
Intermediate & Advanced SEO | | Chirag7530 -
301 redirect from one domain to other domain, How To?
Hi, I need to redirect 150 products pages from http://www.filtrationmontreal.com/ to http://www.furnacefilterscanada.com/ How can I do this? Is there a tool or anything I can do to do 301 from one domain to another one? Can I use Google Webmaster Tool? Thank you, BigBlaze
Intermediate & Advanced SEO | | BigBlaze2050 -
What tactics are working well for seo these days?
It seems google put the scare in everyone and all hear is content marketing is the future etc But few talk about what tactics are working to rank a site on a compettive term now not in the future. So ask from your experiences what tactics do you see working the best these days?
Intermediate & Advanced SEO | | DavidKonigsberg0 -
Need a mobile XML Sitemap?
We're going to be running our mobile site on the same domain and generating content for users on mobile devices with style sheets (will not have m.domain). The content on our URLs will be the exact same. My question is if we need to create a mobile XML Sitemap to submit to the search engines. Do we need to create the Sitemap, that will contain the exact same URLs as our non-mobile Sitemap, and just include <mobile><mobile>tags around the URLs? Or do we need to create a mobile Sitemap at all to alert the search engines that we have mobile content?</mobile></mobile> Thanks!
Intermediate & Advanced SEO | | bonnierSEO0 -
I rank well in google but poorly in Yahoo
Why is this the case? If there is a filter or penalty on my site from yahoo, how do I ask yahoo to correct this?
Intermediate & Advanced SEO | | DavidS-2820610