Internal file extension canonicalization
-
Ok no doubt this is straightforward, however seem to be finding to hard to find a simple answer; our websites' internal pages have the extension .html. Trying to the navigate to that internal url without the .html extension results in a 404.
The question is; should a 401 be used to direct to the extension-less url to future proof? and should internal links direct to the extension-less url for the same reason?
Hopefully that makes sense and apologies for what I believe is a straightforward answer;
-
As above
example/abc rewrites to example/abc.html
example/abc.html redirects to example/abc
and all internal links link to example/abc
-
Thankyou for the replies.
I will try and clarify what I am trying to get at; apologies in advance for any naivety.
I understand homepage canonicalization; the confusion revolves around how this applies to internal pages.
Logically; I am struggling to see how internal pages are any different to a homepage in terms of the need to avoid multiple urls....and thus an extension-less url seemed appropriate. Not too mention the benefit or cleaner urls, easier to link to, remember etc.
i.e.
example/abc
example/abc.html
example/abc.index.html
-
As nick said, you dont need to do this, but if you are.
1. REWRITE the new url to the old url, as your webserver needs to know the extention
2. REDIRECT the old url to the new one, incase you already have links to the old urls, you dont want5 duplicate content
3. you need to make surer that all internal links point to the new url, you dont want un-necessary redirects as they leak link juice.
-
I'm about to make a whole lot of assumptions about your website to give this answer, just be aware.
Your website is built static, using HTML. Hence the .html file extension. If you're seeing websites that don't have file extension, it's most likely they are using content management systems (or have some serious /folder/index.html stuff going on).
Having a file extension like .html or .aspx or .php is not a bad thing. On websites like yours, it is required (unless you do the above subfolder thing) because it's an actual file the browser is grabbing rather than something being dynamically generated by a CMS. It has nothing to do with future-proofing.
As for 301'ing non-extension URLs to extention'd ones...well I don't know why you'd need to do that for your type of 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
-
Internal link is creating duplicate content issues and generating 404s from website crawl.
Not sure what the best way to describe it but the site is built with Elementor page builder. We are finding out that a feature that is included with a pop modal window renders an HTML code as so: Click So when crawled I think the crawling is linking itself for some reason so the crawl returns something like this: xyz.com/builder/listing/ - what we want what we don't want xyz.com/builder/listing/ xyz.com/builder/listing/%23elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6Ijc2MCIsInRvZ2dsZSI6ZmFsc2V9/ xyz.com/builder/listing/%23elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6Ijc2MCIsInRvZ2dsZSI6ZmFsc2V9//%23elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6Ijc2MCIsInRvZ2dsZSI6ZmFsc2V9/ so you'll notice how that string in the HREF is appended each time and it loops a couple times. Could I 301 this issue, what's the best way to go about handling something like this? It's causing duplicate meta descriptions/content errors for some listing pages we have. I did add a rel='nofollow' to the anchor tag with JavaScript but not sure if that'll help.
Technical SEO | | JoseG-LP0 -
Correct Internal Linking Strategy
Hello. So my website currently has 8 pages in total. (Homepage, 5 Service Pages, Contact, About). I currently have about 80 quality RD and my Homepage already ranks #8 for my main keyword, while all Service Pages (P1, P2, P3, P4, P5) are stuck somewhere at #30-60 positions for their target keywords. My internal linking scheme looks like this https://i.imgur.com/2cA529v.png. The Homepage has a sidebar with links to all Service Pages, and each Service Page has the same sidebar that links to each Service Page, but doesn't link back to my Homepage. Contact and About pages can be accessed only via the links in the menu. I don't have any contextual links on my website, so all pages that are important for SEO are linked only via this same very sidebar. All these Service Pages are equally valuable to me, but they don't seem to grow much in Google. The Onpage Score of these pages is better than those of TOP10 competitors, and my content provides more value (I used the Skyscraper Technique). Taking all that into consideration, can you please tell me what might be wrong? Why Should I build more quality backlinks to these service pages instead of the homepage? Should I add contextual links to all my service pages from the homepage? Does my internal linking strategy look good to you? If not, what should I change? Can I hit top #10 with my internal pages for their target keywords if I mainly build links only to my homepage? All keywords that I'm after have low to medium competition. My website has 90 RD in total, and my website's DA is 27. Thank you. 2cA529v.png
Technical SEO | | NathalieBr3 -
Optimizing internal links or over-optimizing?
For a while I hated the look of the internal links page of Google Web Master Tools account for a certain site. With a total of 120+K pages, the top internal link was the one pointing to "FAQ". With around 1M links. That was due to the fact, on every single page, both the header and the footer where presenting 5 links to the most popular questions. The traffic of those FAQ pages is non-existent, the anchor text is not SEO interesting, and theoretically 1M useless internal links is detrimental for page juice flow. So I removed them. Replacing the anchor with javascript to keep the functionality. I actually left only 1 “pure” link to the FAQ page in the footer (site wide). And overnight, the internal links page of that GWT account disappeared. Blank, no links. Now... Mhhh... I feel like... Ops! Yes I am getting paranoid at the idea the sudden disappearance of 1M internal links was not appreciated by google bot. Anyone had similar experience? Could this be seen by google bot as over-optimizing and be penalized? Did I possibly triggered a manual review of the website removing 1M internal links? I remember Matt Cutts saying adding or removing 1M pages (pages) would trigger a flag at google spam team and lead to a manual review, but 1M internal links? Any idea?
Technical SEO | | max.favilli0 -
Website Redesign / Switching CMS / .aspx and .html extensions question
Hello everyone, We're currently preparing a website redesign for one of our important websites. It is our most important website, having good rankings and a lot of visitors from Search Engines, so we want to be really careful with the redesign. Our strategy is to keep as much in place as possible. At first, we are only changing the styling of the website, we will keep the content, the structure, and as much as URLs the same as possible. However, we are switching from a custom build CMS system which created URLs like www.homepage.com/default-en.aspx
Technical SEO | | NielsB
No we would like to keep this URL the same , but our new CMS system does not support this kind of URLs. The same with for instance the URL: www.homepage.com/products.html
We're not able to recreate this URL in our new CMS. What would be the best strategy for SEO? Keep the URLs like this:
www.homepage.com/default-en
www.homepage.com/products Or doesn't it really matter, since Google we view these as completely different URLs? And, what would the impact of this changes in URLs be? Thanks a lot in advance! Best Regards, Jorg1 -
What's the best canonicalization method?
Hi there - is there a canonicalization method that is better than others? Our developers have used the
Technical SEO | | GBC0 -
Any way to modify SERP site extension links?
I am not sure if this is doable but one of my clients have their website's SERP with sitelinks extension. In example. www.example.com -example1 -example2 -example3 -example 4 Anyway to modify the sitelinks on the SERP?
Technical SEO | | William.Lau0 -
Managing international sites, best practises
This question follows on from my earlier question http://www.seomoz.org/q/how-to-replace-my-co-uk-site-with-my-com-site-in-the-us-google-results My client owns www.blindbolt.co.uk for the UK site and www.blindboltusa.com for their US site. They will shortly be having a new site for Australia. They have just acquired www.blindbolt.com and have expressed an interest in using this as the main hub for all of their sites, i.e. http://uk.blindbolt.com, http://aus.blindbolt.com. The current, existing sites (e.g. www.blindbolt.co.uk) could be 301'd to the new locations. Could I have your thoughts please on whether to go down this route of having international subdomains , vs keeping the sites on separate top level domains? What should I take into consideration? Is google smart enough to return different subdomain results in different countries? Many thanks!
Technical SEO | | OffSightIT0 -
Online Marketing exec seeking internal SEO advice - Large org. Many verticals. Where to start?
Hello! I'm an Online Marketeer who's taking on some SEO responsibility internally (after months of researching - information overload) and will be working with an external agency. I'll get to the point here. The difficulty I have is in getting my head around approaching our SEO strategy. I have what I would class as a beginner-intermediate understand of SEO and the tools and techniques available for assistance (many great articles available on this forum and others). I feel that there are some real opportunities for our company that has already placed investment into SEO previously. The difficulty I have is working out how to approach the whole campaign. We are a recruitment consultancy with many many vertical markets, the sheer amount of keywords could be staggering. For some short insights we have a homepage PR 4, Alexa 338,361, PA 56, moz Rank 4.61. I've started by using the SEOmoz pro tool to identify problems with our sites optimisation and improve them. On reflection our site is doing OK, but we really need to show some significant results in search rankings, increases in traffic, and ultimately conversions. I'm a keen user of G-analytics and love the SEOmoz tool (a selection of the tools I will use to measure results). Are there any basic frameworks to devising a strategy that could help point me in the right direction? E.g. Keyword Research
Technical SEO | | ARMofficial
Identify Keywords
Optimise Site for keywords
Setup campaign to measure keywords SERP's
Perform internal & external SEO techniques
Wait and see what happens and continuously improve I appreciate there could be no simple answer to this project. If you would like any more information about who we are please let me know by comment. Best Regards,
Sam.0