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

    Webconfig setup

    Technical SEO Issues
    9 3 767
    • 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.
    • AndrewAkesson
      AndrewAkesson last edited by

      We're launching a new site for our client on their existing domain, and as many of the URL's are changing we need to create some webconfig redirects.

      However, rather than create a webconfig file which redirects each page on the existing site to a corresponding page on the new site, I was hoping to create redirect rules for the top landing pages only, and then have a catch all which redirects all other URL's to the homepage.

      How would you set this up in a webconfig file?

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

        I would not redirecet all to the home page, they will be ignored if you 301 redirecet onm mass to the one page.

        You really do need to look at each link comming into the siite, look at the link text and the page it comes from and decide a good relevant page to send it to.

        For some tutorials on redirecetd using teh webconfig file see my web site

        http://perthseocompany.com.au/seo/tutorials

        1 Reply Last reply Reply Quote 2
        • RobMay
          RobMay last edited by

          I totally agree with Alan on this. You really need to look at each individual URL, and 301 redirect to ensure they are in place, page by page. It's a sensitve issue for sure and proceed with caution for sure.

          It's also not condusive to 301 all URL's and links to the homepage URL. This doesn't make for a great 'user experience' and can cause confusion to the user visiting the site, looking for the specific material. It can also confuse the hell out of a search engine (where did all those other pages I had index'ed go!)

          You might also damage the inbound link quality of pages in place now that have links pointing to it. Sure that would pass on to the main domain URL (losing value of 5-15% in the 301), but it's just not a great strategy tpo blindly 301 everything to the homepage. Alan said it right below - you need to look at the links, inbound anchor text, where it's coming from and redirect to the right page via 301) for the best user end experience.

          I would map out all the URL's that are new, and then map out the URL's that correlate to those pages exactly. Then setup the webconfig file to have individual page level 301 redirects and put those into place. He provided a link below to his webconfig file for 301 redirects.

          Cheers, Rob

          1 Reply Last reply Reply Quote 1
          • AndrewAkesson
            AndrewAkesson last edited by

            Thanks for the responses.

            OK, so generally you'd try and have a specific redirect in place for all URL's on the existing site.

            I understand then that I should create a more comprehensive set of redirects, but I'm unsure about the IHttpModule. What is the reason you've suggested this method as opposed to setting up redirects directly within the web.config using rules like this:

            <location path="services.htm"></location>

            Thanks again, Matt

            AlanMosley 1 Reply Last reply Reply Quote 0
            • AlanMosley
              AlanMosley @AndrewAkesson last edited by

              I did'nt recomend IHttpModule, although it is a very good way to do it. You can then do all your redirects by code rather then regular expressions, with code I find it easier to do more complicated stuff.

              The redirecets you are doing are oldPage to newPage this is fine, but not the best. You may have a incomming link about dogs, that went to a page about cats, now is a chance to point it to dogs. Your links may not have been pointing at the most releative page so just going page to page brings accross any non relevant links. You can do betterbuy getting a link report from SEOMoz and looking at the refereing page and the link text to make the best decision. But with time and effort, it may be the easiest to do as you are doing.

              Also using url-rewite model of IIS gives you more flexability than using the location tag as you are doing. You should install it on iis if you can and look at the options it gives you.

              http://thatsit.com.au/seo/tutorials

              AndrewAkesson AlanMosley 4 Replies Last reply Reply Quote 0
              • AndrewAkesson
                AndrewAkesson @AlanMosley last edited by

                An update on this...

                I've tried to create a web.config file containing around 1000 redirects from the old version of an ecommerce site to the new version of the site.

                They've kept the same domain, but the URL structure is completely different so really I need all the redirects I've pieced together to be put in place. However, the web.config is too big and breaks the site.

                In the interim I'm going to cut down the web.config file until it works, but I this isn't an ideal solution.

                Any ideas?

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

                  Then i would look at created a ihhtpmoduel, not too hard, i have tutorials on my sites

                  http://thatsit.com.au/seo/tutorials

                  1 Reply Last reply Reply Quote 1
                  • AndrewAkesson
                    AndrewAkesson @AlanMosley last edited by

                    Ok, thanks Alan. I'll nag the devs again.

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

                      If you look at tutorials you can copy and paste module with all the hard work done. and then you onlyhave to write the redirects

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • How to setup an iFrame to be indexed as the parent site
                        Don34
                        Don34
                        0
                        3
                        125

                      • Our site recently switched from http to https. Do I still need to setup a redirect for the incoming links pointing to http?
                        Andy.Drinkwater
                        Andy.Drinkwater
                        0
                        5
                        81

                      • Blogger /blog Folder level redirect setup using .htaccess
                        Direct_Ram
                        Direct_Ram
                        0
                        3
                        1.1k

                      • How should we setup of a side (slightly off-topic) blog?
                        ProjectLabs
                        ProjectLabs
                        0
                        3
                        112

                      • Ecommerce website: Product page setup & SKU's
                        Keszi
                        Keszi
                        0
                        9
                        1.3k

                      • How should I properly setup my .htaccess file?
                        maxduveen
                        maxduveen
                        0
                        5
                        2.0k

                      • Best way to setup large site for multi language
                        DavidLenehan
                        DavidLenehan
                        0
                        3
                        454

                      • Setup 301 Redirects
                        matbennett
                        matbennett
                        0
                        3
                        750

                      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