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. How to redirect index.htm (IIS server, windows hosting) to index.php (Apache server, Linux Hosting) ?

    How to redirect index.htm (IIS server, windows hosting) to index.php (Apache server, Linux Hosting) ?

    Technical SEO Issues
    8 3 4.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.
    • GovindIRC
      GovindIRC last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • FedeEinhorn
        FedeEinhorn last edited by

        You will need to put a 301 redirect to the new page, and within the new page set the canonical tag to that page.

        Be careful on setting the canonical tag. If your Website will serve that page when you go to example.com, the canonical of the index should be that domain (without the index.php), otherwise, example.com and example.com/index.php will have duplicate content.

        As a plus, point your "Home" links to the domain and not to the index.php, that is:

        Home NOT Home.

        Hope that helps!

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

          This post is deleted!
          FedeEinhorn 1 Reply Last reply Reply Quote 0
          • FedeEinhorn
            FedeEinhorn @GovindIRC last edited by

            Use htaccess to put permanent redirects on specific pages / domains:

            <code>Redirect 301 /index.html http://www.yoursite.com/index.php
            
            OR BETTER YET:</code> 
            

            <code>Redirect 301 /index.html http://www.yoursite.com/</code>

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

              This post is deleted!
              FedeEinhorn 1 Reply Last reply Reply Quote 0
              • FedeEinhorn
                FedeEinhorn @GovindIRC last edited by

                1. In internet services manager, right click on the file or folder you wish to redirect.
                2. Select "a redirection to a URL".
                3. Enter the redirection page.
                4. Check "The exact url entered above", and the "A permanent redirection for this resource".
                5. Click "Apply".

                More info here: http://www.iis.net/configreference/system.webserver/httpredirect

                GovindIRC 1 Reply Last reply Reply Quote 1
                • GovindIRC
                  GovindIRC @FedeEinhorn last edited by

                  This post is deleted!
                  Cyrus-Shepard 1 Reply Last reply Reply Quote 0
                  • Cyrus-Shepard
                    Cyrus-Shepard @GovindIRC last edited by

                    If you don't have the authority to access IIS, then your options are indeed limited.

                    But, it may not matter. If it's the homepage root, your homepage may get all the credit for the link equity (including pagerank) instead of the individual file.

                    For example, depending on how people link to you, the authority may actually life on example.com instead of example.com/index.htm.

                    If it were me, I'd likely place both a meta refresh and a canonical tag in the .htm file

                    You may want to add a 10 second delay to the meta refresh, with a message to the user that they are being redirected (you can Google how to do this). This will help prevent Google from interpreting the meta refresh as a sneaky redirect.

                    Not a perfect solution, but perhaps the best under the circumstances!

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    • Subdomain hosted on a different server VS Subfolder on main server
                      NakulGoyal
                      NakulGoyal
                      0
                      2
                      124

                    • 301 redirects on Windows server
                      Houses
                      Houses
                      0
                      3
                      1.2k

                    • Index.php and 301 redirect with Joomla
                      SanketPatel
                      SanketPatel
                      0
                      2
                      2.1k

                    • 301 Redirect Question for trailing slash & index.php
                      anoopbal
                      anoopbal
                      0
                      3
                      973

                    • Windows IIS 7 Redirect Question
                      ABDBCVVLCVL
                      ABDBCVVLCVL
                      0
                      3
                      494

                    • Redirect or not to redirect
                      AlanMosley
                      AlanMosley
                      0
                      7
                      458

                    • IIS Server Load for 500 Page Level 301 Redirects
                      DigitalMkt
                      DigitalMkt
                      0
                      3
                      837

                    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