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. 301 Redirect with index.asp

    301 Redirect with index.asp

    Technical SEO Issues
    37 4 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.
    • Mike.Goracke
      Mike.Goracke last edited by

      Hi Troy,

      The issue with /index.asp is coming up because of your Home link in your footer. Instead of resolving to home "/" it is being pointed to "/index.asp".

      And the reason it is also showing the www-version is because when the crawler is on lucid8.com and it crawls the link to the right of customer/partner login "customers", the crawler is brought to www.lucid8.com/downloadplus/Resource_login.asp Then, from here, if you click on any of the hyperlinks, you are brought to the www-version of the page instead of the non-www you specified as your preferred.

      Jesse is correct in saying you need to choose either a www or non-www version; however, you also need to fix the /index.asp issue.

      Hope this helps.

      Mike

      jesse-landry TroyW MichaelC-15022 3 Replies Last reply Reply Quote 2
      • jesse-landry
        jesse-landry @Mike.Goracke last edited by

        excellent catch, Mike. He's absolutely correct about the index.asp page.

        these two fixes should really help your site.

        1 Reply Last reply Reply Quote 0
        • TroyW
          TroyW @Mike.Goracke last edited by

          Great info thanks guys and

          1. I found and corrected the /index.asp issue and am searching to ensure that issue is resolved on all other pages as well

          2. Regarding the http://lucid8.com and http://www.lucid8.com  I am confused as to where this is set or how to adjust.  Can you provide any additional hints as to how I should address this?

          Thanks to both of you this has been a great help!

          Mike.Goracke 1 Reply Last reply Reply Quote 0
          • Mike.Goracke
            Mike.Goracke @TroyW last edited by

            That is a change you will make on your server.

            Depending on the backend software you use, the code or setting to implement this type of change will be different.

            What software do you use?

            Mike

            TroyW 1 Reply Last reply Reply Quote 0
            • TroyW
              TroyW @Mike.Goracke last edited by

              Mike sorry for the delay in response....

              I am using IIS on a Windows 2003 Server

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

                BTW I Googled the issue and then poked around IIS on could not find any type of duplicate entry for www vs non www, however perhaps I am missing something simple?   The entry that I have for the main site doesn't seem to say whether its for WWW or Non-WWW either so?

                Also read an article that said this might be the cause of a duplicate DNS entry, i.e. one for WWW and one for non WWW??

                Mike.Goracke 1 Reply Last reply Reply Quote 1
                • MichaelC-15022
                  MichaelC-15022 @Mike.Goracke last edited by

                  Mike is correct.  You've got 2 separate problems here.  I actually wrote articles on these for About Us here and here.

                  1 Reply Last reply Reply Quote 0
                  • MichaelC-15022
                    MichaelC-15022 @jesse-landry last edited by

                    FYI you'll want to rename index.asp to something else, and then change the default document to point to the new filename (e.g. "home.asp"), then 301 redirect index.asp to /.  This will consolidate any link juice currently going to index.asp onto your one real home page, "/".

                    When you think you're all done, then use the Firefox plugin HTTPfox to see your entire HTTP response code stream when you hit index.asp, the non-www version of your site, etc.  You're looking to see a single 301 redirect for each.

                    TroyW 1 Reply Last reply Reply Quote 0
                    • Mike.Goracke
                      Mike.Goracke @TroyW last edited by

                      If you are using IIS, then you would want to configure these fixes in your web.config file.

                      I think you'd want something like this:

                      <configuration><system.webserver><rewrite><rewritemaps><rewritemap name="Redirect"><add key="/index.asp" value="/"></add></rewritemap></rewritemaps>
                                  <rules><rule name="CanonicalHostNameRule" enabled="true"><match url="(.*)"><conditions logicalgrouping="MatchAll" trackallcaptures="false"><add input="{HTTP_HOST}" pattern="^www.lucid8.com$" negate="true"></add></conditions>
                                          <action type="Redirect" url="http://www.lucid8.com/{R:1}"></action></match></rule></rules></rewrite></system.webserver></configuration>

                      If that does not work, I would recommend breaking it into sections - for example, try doing the redirect code first, then the canonical code second, or vise versa. I always look up examples of web.config configurations on stackoverflow.com.

                      Hope this helps Troy.

                      Mike

                      TroyW 1 Reply Last reply Reply Quote 2
                      • TroyW
                        TroyW @Mike.Goracke last edited by

                        Mike I think that did the trick, which is awesome!!!   I validated the results by entering lucid8.com and it redirected me, however it added HTTPS vs the default of HTTP i.e. i got https://www.lucid8.com/ vs. http://www.lucid8.com/

                        Therefore;

                        1. Does the code above need to be modified or do I need to change some other setting

                        2. Is there a more robust way of validating these resolutions, i.e. if I do a new scan with SEOmoz will it immediately report that the issues have been fixed or ???  OR are there other methods to ensure I fixed these two issues completely?

                        Mike.Goracke 1 Reply Last reply Reply Quote 0
                        • Mike.Goracke
                          Mike.Goracke @TroyW last edited by

                          Cool. Glad to help.

                          Taking care of https is another rule that you would need to implement. This can be a bit more tricky if your site uses https for other purposes (such as signing in or a checkout process, etc.)

                          If you do not use https anywhere on your site, I can probably come up with some code that would work for you.

                          The SEOmoz scan is done on a weekly basis, so there isn't much you can do there. And as for other tools to do these scans, you really cannot get the level of detail in a user-friendly manner that SEOmoz provides - in my opinion.

                          Mike

                          MichaelC-15022 TroyW 3 Replies Last reply Reply Quote 0
                          • MichaelC-15022
                            MichaelC-15022 @Mike.Goracke last edited by

                            You can thoroughly test these your self using the Firefox plugin httpfox.

                            The advantage this particular tool has over pretty much everything else is that you see not only the LAST http response code, but the entire chain.

                            I've answered private Q&A questions here from people where Google was seeing one of the response codes in the chain, but other tools were seeing a different one.  If I remember correctly, it was a chain of 301s and 302s.

                            You want (ideally) a SINGLE 301; if you cannot make that happen, then a chain of 301s, with no 302s or 404s in the middle.

                            1 Reply Last reply Reply Quote 0
                            • TroyW
                              TroyW @Mike.Goracke last edited by

                              We do use HTTPS in different sections on the site.  I played with a few things however it appears that unless you get complex there is no easy way to ensure the proper pages go to HTTP or HTTPS so will leave as the default of HTTPS now since it clearly does no harm in opening a non HTTPS page as HTTPS unless there is something I am missing??

                              Mike.Goracke 1 Reply Last reply Reply Quote 0
                              • TroyW
                                TroyW @MichaelC-15022 last edited by

                                ok so I corrected all the internal references by taking out the explicit use of index.asp so moving forward that would seem to be solved.

                                However that said is the premise here that index.asp is already seen as a separate page from www.lucid8.com and therefore  should become the reference page to a copy of itself called home.asp or whatever so that anything out there pointing to index.asp will now get consolidated into the new home.asp file and that when that happens it will resolve any issue with the search engines thinking that www.lucid8.com and www.lucid8.com/index.asp are different?

                                MichaelC-15022 1 Reply Last reply Reply Quote 0
                                • TroyW
                                  TroyW @Mike.Goracke last edited by

                                  So the weekly scan from SEOmoz, will that happen one week from the original scan date or?  And if so will the campaign show when the scan has been updated or will I get a notification that its been updated or??

                                  Just trying to figure out how to best use the tool and how long to wait for changes to appear in SEOmoz before I can mark an issue internally as being resolved so I can move on to the others

                                  Mike.Goracke 1 Reply Last reply Reply Quote 0
                                  • Mike.Goracke
                                    Mike.Goracke @TroyW last edited by

                                    The only thing that can happen is if Google indexes an http and https version of the same page. It isn't a HUGE deal... just depends on how obsessed you are about the site structure.

                                    You could potentially have visitors start linking to the https version vs the http version, in which case that would be a problem.

                                    Depending on the complexity of your site and code, this rule may be able to help you... where it says, pattern="download" that means that if someone visits the downloads section of your website, it will allow for https.  You can continue to add additional folders by just repeating that code and replacing "download" with whatever the folder names are that you want to allow to use HTTPS. I did a Google search of site:lucid8.com inurl:https and noticed that your download section was indexed as using HTTPS, that is why I used it in this example.

                                    If you are just using simple folder structures, this rule is not too bad to implement. I previously just implemented it with pattern matching and that was not fun.

                                    Any way, if it helps great, if not, just try to keep your internal linking as consistent as possible. Sometimes the best way to do this is use absolute paths vs relative.

                                    Mike

                                    <rule name="AllHTTPexceptSIGNIN" stopprocessing="true"><conditions><add input="{HTTP_HOST}" pattern="<a href=" http:="" (www.)(.)$"="">http://(www.)(.)$" negate="true" />
                                                            <add input="{HTTPS}" pattern="on"><add input="{URL}" pattern="download" negate="true"></add></add></add></conditions>
                                                        <action type="Redirect" url="<a href=" http:="" {http_host}="" {r:0"="">http://{HTTP_HOST}/{R:0}" redirectType="Permanent"/>
                                                   </action></rule>

                                    TroyW 1 Reply Last reply Reply Quote 1
                                    • Mike.Goracke
                                      Mike.Goracke @TroyW last edited by

                                      If you go to your campaign overview page, you will see a little box below the mini overviews that will say something like, "Last Crawl Completed: Apr. 3rd, 2013 Next Crawl Starts: Apr. 10th, 2013"

                                      I personally use SEOmoz PRO tools in combination with Screaming Frog. I verify many of the problems using Screaming Frog, then fix them, then rescan (which is instant), then wait for my SEOmoz PRO tools to reflect my changes. SEOmoz does a great job of warning you and keeping you in the know... where Screaming Frog gives you a lot of information, but you really have to know what you are looking for and would have to keep on top of it... SEOmoz is more automated... if that makes sense.

                                      Mike

                                      TroyW MichaelC-15022 2 Replies Last reply Reply Quote 1
                                      • TroyW
                                        TroyW @Mike.Goracke last edited by

                                        Excellent information and it appears that today is my next crawl date.  I will also take a look at screaming frog to see what it is all about.  Thanks much for all your help and insight its invaluable.  I am stuck trying to do this myself because of budgetary reasons and also my past experience with so called SEO experts was not so great...  Lots of posers out there, however tools like this and these message boards make it much better and also easier to find other people to work with in the future.

                                        Thanks again Mike

                                        Troy

                                        1 Reply Last reply Reply Quote 0
                                        • TroyW
                                          TroyW @Mike.Goracke last edited by

                                          ok thats  great information since we only have a few sections where HTTPS is enforced and the cleaner I can make things the better.

                                          That said here is what I have now in my web.config file so

                                          1. how would I best integrate what you have above with this?

                                          2. As I add new sections for HTTPS is it a single line for each new pattern, i.e. like "purchase" for example.

                                          3. Am I correct that the "MatchAll" is for non case sensitivity?

                                          <system.webserver><rewrite><rewritemaps><rewritemap name="Redirect"><add key="/index.asp" value="/"></add></rewritemap></rewritemaps>
                                                      <rules><rule name="CanonicalHostNameRule" enabled="true"><match url="(.*)"><conditions logicalgrouping="MatchAll" trackallcaptures="false"><add input="{HTTPS}" pattern="^ON$"><add input="{HTTP_HOST}" pattern="^www.lucid8.com$" negate="true"></add></add></conditions>
                                                              <action type="Redirect" url="http://www.lucid8.com/{R:1}" redirecttype="Permanent"  =""></action></match></rule></rules></rewrite></system.webserver>

                                          Mike.Goracke 1 Reply Last reply Reply Quote 0
                                          • Mike.Goracke
                                            Mike.Goracke @TroyW last edited by

                                            MatchAll means that all of the conditions must be met for the rule to process. It has nothing to do with case sensitivity.

                                            Give this a whirl (I added your example of including a purchase folder in the rule):

                                            <system.webserver><rewrite><rewritemaps><rewritemap name="Redirect"><add key="/index.asp" value="/"></add></rewritemap></rewritemaps>
                                                    <rules><rule name="CanonicalHostNameRule" enabled="true"><match url="(.)"><conditions logicalgrouping="MatchAll" trackallcaptures="false"><add input="{HTTPS}" pattern="^ON$"> 
                                                                <add input="{HTTP_HOST}" pattern="^www.lucid8.com$" negate="true"></add></add></conditions>
                                                            <action type="Redirect" url="<a href=" http:="" www.lucid8.com="" {r:1"="">http://www.lucid8.com/{R:1}" redirectType="Permanent"  />
                                                       </action></match></rule>
                                                        <rule name="AllHTTPexceptSIGNIN" stopprocessing="true"><conditions><add input="{HTTP_HOST}" pattern="<a href=" http:="" (www.)(.
                                            )$"="">http://(www.)(.*)$" negate="true" />
                                                                <add input="{HTTPS}" pattern="on"><add input="{URL}" pattern="download" negate="true"><add input="{URL}" pattern="purchase" negate="true"></add></add></add></add></conditions>
                                                            <action type="Redirect" url="<a href=" http:="" {http_host}="" {r:0"="">http://{HTTP_HOST}/{R:0}" redirectType="Permanent"/>
                                                       </action></rule></rules></rewrite></system.webserver>

                                            TroyW 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            • 404 Errors for Form Generated Pages - No index, no follow or 301 redirect
                                              Ric_McHale
                                              Ric_McHale
                                              0
                                              5
                                              549

                                            • Redirect a 301 Redirect
                                              RedCaffeine
                                              RedCaffeine
                                              0
                                              5
                                              98

                                            • 301 redirects reverting to 302 redirects
                                              Devanur-Rafi
                                              Devanur-Rafi
                                              0
                                              6
                                              532

                                            • 301 Redirect with ASP (not .NET)
                                              Hughescov
                                              Hughescov
                                              0
                                              2
                                              550

                                            • Does it really matter to maintain 301 redirect after de-indexing of old URLs?
                                              EGOL
                                              EGOL
                                              0
                                              9
                                              1.7k

                                            • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                                              Room214
                                              Room214
                                              0
                                              7
                                              1.1k

                                            • Why is a 301 redirected url still getting indexed?
                                              dim_d
                                              dim_d
                                              0
                                              6
                                              1.1k

                                            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