The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Are .html pages better for ranking than .asp pages

    Are .html pages better for ranking than .asp pages

    Technical SEO Issues
    8 6 2.1k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DavidS-282061
      DavidS-282061 last edited by

      It seems that .html pages do better for the long tail...

      1 Reply Last reply Reply Quote 0
      • DavidKauzlaric
        DavidKauzlaric last edited by

        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.

        DavidS-282061 1 Reply Last reply Reply Quote 0
        • DavidS-282061
          DavidS-282061 @DavidKauzlaric last edited by

          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...

          Tom-Anthony DavidKauzlaric AlanMosley 3 Replies Last reply Reply Quote 0
          • Tom-Anthony
            Tom-Anthony @DavidS-282061 last edited by

            Good thinking, but actually HTML pages are not necessarily static, so I agree with David that it shouldn't make any difference. 🙂

            1 Reply Last reply Reply Quote 0
            • DavidKauzlaric
              DavidKauzlaric @DavidS-282061 last edited by

              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!

              1 Reply Last reply Reply Quote 0
              • RyanOD
                RyanOD last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • Getz.pro
                  Getz.pro last edited by

                  SEs use to devalue for dynamic content, but not anymore. .html might be better for the end user, but that is a small consideration.

                  1 Reply Last reply Reply Quote 0
                  • AlanMosley
                    AlanMosley @DavidS-282061 last edited by

                    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 confirm

                    MVC also leaves very clean code, no postbacks or viewstate to clog up the code

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Home Page Ranking Instead of Service Pages
                      ChrisAshton
                      ChrisAshton
                      0
                      7
                      1.0k

                    • Which carries more weight Google page rank or Alexa Rank?
                      sherohass
                      sherohass
                      0
                      3
                      397

                    • Two different page authority ranks for the same page
                      trophycentraltrophiesandawards
                      trophycentraltrophiesandawards
                      0
                      3
                      484

                    • Page rank and ranking down
                      AnnSmarty
                      AnnSmarty
                      0
                      6
                      434

                    • Are building a page using HTML 5 better for seo?
                      jimpannell
                      jimpannell
                      0
                      3
                      359

                    • Is it better to delete web pages that I don't want anymore or should I 301 redirect all of the pages I delete to the homepage or another live page?
                      EGOL
                      EGOL
                      0
                      2
                      417

                    • Frequent updating of pages on website to rank better
                      KeriMorgret
                      KeriMorgret
                      0
                      6
                      649

                    • On Page 301 redirect for html pages
                      randfish
                      randfish
                      0
                      7
                      1.6k

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy