Are .html pages better for ranking than .asp pages
-
It seems that .html pages do better for the long tail...
-
I'm not sure they dont matter, i would think that .pdf, .doc and. xps for example would be less usefull than a htm, asp, aspx.
but David is correct, you are better of not haveing a file name.I develop using Microsoft Asp.MVC, there are no file names in MVC
i believe seomoz is also written in MVC, cant remeber what tipped me off to that maybe some one from SEOMoz can confirmMVC also leaves very clean code, no postbacks or viewstate to clog up the code
-
SEs use to devalue for dynamic content, but not anymore. .html might be better for the end user, but that is a small consideration.
-
David's response is accurate. However, you can always rewrite the .aspx URL on the server and serve .html (or whatever). The server will see .aspx, but the visitor will see .html.
Working with ASP
I work strictly with PHP on Linux servers so I'm going to point you to a site that offers a tutorial I can't really vouch for. Head here for a tutorial detailing how to set up .asp to .html rewrites.
Working with PHP
On a Linux box, you can insert the following code into your .htaccess file to set up URL rewriting. I know the question wasn't about PHP and Linux. I'm just including this for others who might find it useful.
RewriteEngine on
RewriteBase /
RewriteRule ^(.*).html$ $1.php [L]If you're interested in further information, here is a resource to help you learn more about working with .htaccess files.
-
The actual extensions don't matter. In fact, you should be using mod_rewrite to remove extensions on all your pages! All it does is add clutter and unnecessary junk to your URL strings. HTML is HTML, it doesn't matter if it's static, created using PHP, or created using ASP!
-
Good thinking, but actually HTML pages are not necessarily static, so I agree with David that it shouldn't make any difference.
-
Thanks, So the search engines do not value one extension over the other...? I thought they might prefer html a little because has all that static code...
-
There is no difference. ASP is just a web programming language that can output HTML code the same way a straight HTML page is HTML or PHP can output HTML. No difference.
If you mean having the actual extension in your URL, there is no difference.
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
-
On-Page Problem
Hello Mozzers, A friend has a business website and the on-page stuff is done really bad. He wants to rank for: conference room furnishing, video conference, digital signage. (Don't worry about the keywords, it's just made up for an example.) For these three services he has a page: hiswebsite.com/av AV stands for audio and video and is the h1. If you click on one of the service, the url doesn't change. Like if you click on video conference, just the text changes, the url stays /av. All his targeted pages got an F Grade, I am not surprised, the services titles are in . Wouldn't it be a lot better to make an own page for every service with a targeted keyword, like hiswebsite.com/video-conference All this stuff is on /av, how will a 301 resirect work to all the service pages, does this make sense? Any help is appreciated! Thanks in advance!
Technical SEO | | grobro1 -
Should I deindex my pages?
I recently changed the URLs on a website to make them tidier and easier to follow. I put 301s in place to direct all the previous page names to the new ones. However, I didn't read moz's guide which says I should leave the old sitemap online for a few weeks afterwards. As I result, webmaster tools is showing duplicate page titles (which means duplicate pages) for the old versions of the pages I have renamed. Since the old versions are no longer on the sitemap, google can no longer access them to find the 301s I have put in place. Is this a problem that will fix itself over time or is there a way to quicken up the process? I could use webmaster tools to remove these old urls, but I'm not sure if this is recommended. Alternatively, I could try and recreate the old sitemap, but this would take a lot of time.
Technical SEO | | maxweb0 -
Page not cached
Hi there, we uploaded a page but unfortunately didn't realise it had noindex,nofollow in the meta tags. Google had cached it then decached it (i guess thats possible) it seems? now it will not cache even though the correct meta tags have been put in and we have sent links to it internally and externally. Anyone know why this page isn't being cached, the internal link to it is on the homepage and that gets cached almost every day. I even submitted it to webmaster tools to index.
Technical SEO | | pauledwards0 -
Pageing page and seo meta tag questions
Hi if i am using paging in my website there is lots of product in my website now in paging total paging is 1000 pages now what title tag i need to add for every paging page or is there any good way we can tell search engine all page or same ?
Technical SEO | | constructionhelpline0 -
Rel="canonical" of .html/ to .html
Hi, could you guys confirm me that the following scenario is completely senseless? I just got the instruction from an external consultant (with quiet good SEO knowledge) to use a rel="canonical" for the following urls. http://www.example.com/petra.html/
Technical SEO | | petrakraft
to
http://www.example.com/petra.html I mean a folder petra/ to petra is ok - but a trailing slash after .html ??? Apart from that I would rather choose a 301 - not a rel canonical. What is your position here?0 -
Whats happened to my rankings
Hey everyone, I hope someone might be able to help me figure out what has gone wrong here. I have a website which was slowly growing in rankings. The domain used was a .net However, It is a UK based business so I shifted this to a .co.uk domain and then followed googles advice in webmaster tools for moving address. ie, copy site, verify in GWMT and then 301 the old site. Now the .net had 71 indexed pages out of 73. But after 2 months .co.uk only has 41 out of 73 indexed. At the end of last week I did change the theme on my website although the content / urls have all remained the same. I have gone to check my rankings this morning and the site has totally bombed. Even the own brand name does not ranking in top 10 pages. I have not done an major link building at all yet for the site and any links that are there are all high quality from industry related authority sites. Looking at GWMT the latest links all look ok, nothing spammy but one thing I did notice is that it shows the .net domain providing 193 links via 301and also individually a great deal of the links that point to .net but have shown in .co.uk What I would like to know if have I actually done something wrong? Should I just kill the 301 (i am loathed to do this as a few of the links to this took me a long time to get), after spending a great deal of money developing my site and just starting to see some nice progress in the natural rankings and google has gone and pulled the carpet from under me. I would understand if I was doing something wrong but I have made strenuous efforts to ensure the linking on this site is whiter that white. Oh, I have had no warnings in my messages at all. Thanks in advance for any advice.
Technical SEO | | easyrider20 -
What can be the cause of my inner pages ranking higher than my home page?
If you do a search for my own company name or products we sell the inner pages rank higher than the homepage and if you do a search for exact content from my home page my home page doesn't show in the results. My homepage shows when you do a site: search so not sure what is causing this.
Technical SEO | | deciph220