Adding .html To Wordpress Site
-
I am working on a team (my part is the SEO) where the developer added the .html extension to the permalinks. I don't understand why, on Wordpress, you would do this.
Is there any benefit, or penalty for it as an SEO standpoint?
I usually just set mine up %postname% as the permalink structure, but I am not the web design lead on this project.
I asked the designer why, but he seems to be reluctant to answer any of my emails about his work, (like he is above that or something).
Not wanting to make things worse, I dropped it and thought I would ask here since I saw a few posts in reference to it today in the forum.
Is there an advantage or disadvantage (either way) to using the .html extension on a Wordpress site?
-
There is no advanage, but there is disadvanatges.
There s the fact that now you have a 301 redirect to the new url. every 301 redirecte leaks link juice.
there is also the conversion factor, where you really want clear clean data, haveing the .html makes things look that little bit messy.
Most people rewite the other way for this reason, to get rid of the extentions.
Try uising the old url, does it work?
I dont use wopprdpress of develop in php, but php being a server side technology, the webserver will need to know that the page is php. So i assume what the dev has done is rewite the urls, so when .html is used, it rewrites to a url that the web server can understand. When you do a rewite you need to do a 301 redirect from the old url to the new url so that you dont get duplicate contnet, you can not have both redering the same content. UYou also need to change every internal link on the site so that they link directly to the new url, you dont want your internal links going thougth a 301 as they leak link juice, leaking link juice on internal links that you have full control over is an un-necessary waste.
See http://thatsit.com.au/seo/tutorials/friendly-urls-using-url-rewrites-with-iis
This is for Microsoft IIS serrver, but the concept is the same
-
My guess is either developer preference or lack of knowledge. Joomla is the same way. You can have domain.com/about or domain.com/about.html - both accomplish the same thing, one takes an extra step to do (adding the .HTML suffix.)
I guess if you are coming off of an old static HTML site and moving to a CMS, including the .html would allow you to keep the same URL structures much easier than setting up 100s of redirects.
-
Then I guess I would ask why? Why would you setup a wordpress (new installation) blog to have .html extension? You have to go out of your way, as the default is to not have it.
Just old school? If there is no benefit, I just wonder why I guess.... but not that it matters much.
-
Nope, either should be fine. The biggest thing to remember is if you change any URL structure, setup 301 redirects to go from the page's old URL to the new URL.
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
-
Nofollow links on our site menu
Hi Our site's front page has almost 900 internal links on it (it's an ecommerce site with about 25,000 products). A lot of these are on a pretty involved dropdown menu, which is on every page. I can't really do anything to get this figure down (its outside my remit), but one thing the developers have done is make all the menu links nofollow on the mobile version of the menu (site is responsive) - otherwise there would be even more links! My question is as to whether doing this for the mobile menu is a good idea, in terms of SEO?
Technical SEO | | abisti21 -
Launch of improved site
Hi, Just want to ask you guys if i have missed something in my planning. We have done a migration from Ithemes Exchange to woocommerce. The complete migration are done on our dev server. It has an exakt setup as our live one. My plan is to change our live version with a backup from our migrated and finished site from our dev site. All of our product links will be intact with accept from some that we have combined in to new ones, the ones that are changed has been redirected with a 301. Will this way of launching our site effect our ranking/seo in some way? Thankful for any thoughts about this one! // Jonas
Technical SEO | | knubbz0 -
SEO for Wordpress
I am sure you have been asked this many times... What is the BEST Wordpress Plug-in for SEO - Easy to Title Page, Meta Tags, etc... ?? Thanks
Technical SEO | | tab540 -
Can we use our existing site content on new site?
We added 1000s of pages unique content on our site and soon after google release penguin and we loose our ranking for major keywords and after months of efforts we decided to start a new site. If we use all the existing site content on new domain does google going to penalized the site for duplicate content or it will be treated as unique? Thanks
Technical SEO | | mozfreak0 -
Should Canonical be used if your site does not have any duplicate
Should canonical be used site wide even if my site is solid no duplicate content is generated. please explain your answer
Technical SEO | | ciznerguy0 -
Which Wordpress Framework for Best SEO
Which wordpress framework would you use for SEO. From what I have had a look at: Thesis is good but you cannot use other SEO plugins with it such as yoast SEO as it is not compatible Genesis or woo framework are good and a plugin like yoast SEO works well with them. What are your thoughts?
Technical SEO | | VivaArturo1 -
Site not indexing correctly
I am trying to figure out what is going on with my site listings. Google is only displaying my title and url - no description. You can see it when you search for Franchises for Sale. The site is www.franchisesolutions.com. Why could this happen? Also I saw a big drop off in a handful of keyword rankings today. Could this be related?
Technical SEO | | franchisesolutions0