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. Intermediate & Advanced SEO
    4. 301 Redirect pages with .aspx extension

    301 Redirect pages with .aspx extension

    Intermediate & Advanced SEO
    5 2 1.4k
    • 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.
    • VentaMarketing
      VentaMarketing last edited by

      I want 301 redirect all a website's subpages with a .aspx extension to a page without the .aspx etension.

      Example: I want to 301 redirect www.website.com/services.aspx to www.website.com/services

      Right now if you do not include .aspx on the end of every URL it gives a 404 error.

      I have used the web.config file to 301 redirect non-www to www and /default.aspx to /.

      I am not extremely familiar with IIS 7.0 or web.config, so any help would be great.

      Thanks.

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

        Hey Max,

        Hopefully this article will be able to help...

        http://devnet.kentico.com/Knowledge-Base/API-and-Internals/How-to-set-pure-extension-less-URLs-without-suppor.aspx

        Thanks

        Iain - Reload Media

        VentaMarketing 1 Reply Last reply Reply Quote 1
        • VentaMarketing
          VentaMarketing @IainReloadMedia last edited by

          Thanks for the good article on extension less URLs. It is helpful.

          We are more accustomed to working with linux and .htaccess, so when we have to work with Microsoft and a web.config file, we always try to be very careful.

          IainReloadMedia VentaMarketing 2 Replies Last reply Reply Quote 0
          • IainReloadMedia
            IainReloadMedia @VentaMarketing last edited by

            I know that pain! I imagine the perfect world, where all clients are on Wordpress.

            Hope it goes well.

            Iain

            1 Reply Last reply Reply Quote 1
            • VentaMarketing
              VentaMarketing @VentaMarketing last edited by

              That would be the best. Those custom made CMS's can be ridiculously tricky sometimes.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Would You Redirect a Page if the Parent Page was Redirected?
                Nozzle
                Nozzle
                0
                4
                92

              • How to 301 Redirect /page.php to /page, after a RewriteRule has already made /page.php accessible by /page (Getting errors)
                DirkC
                DirkC
                0
                2
                435

              • Is it a problem to use a 301 redirect to a 404 error page, instead of serving directly a 404 page?
                lcourse
                lcourse
                0
                5
                2.0k

              • 301 redirect for page 2, page 3 etc of an article or feed
                mosquitohawk
                mosquitohawk
                0
                3
                189

              • 301 Redirect To Another 301 Redirect
                cbielich
                cbielich
                0
                5
                247

              • External links point to 403 page - how to 301 redirect if no file extension?
                emerald
                emerald
                0
                3
                555

              • Are there any negative effects to using a 301 redirect from a page to another internal page?
                RobertFisher
                RobertFisher
                0
                11
                6.4k

              • 301 - should I redirect entire domain or page for page?
                dunklea
                dunklea
                0
                4
                679

              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