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

    Redirect advice

    Intermediate & Advanced SEO
    7 3 176
    • 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.
    • NileCruises
      NileCruises last edited by

      My website has two versions of the homepage:

      http://www.nile-cruises-4u.co.uk/http://www.nile-cruises-4u.co.uk/index.cfmI wondered if I could set up a 301 redirect in the .htaccess file so that only the http://www.nile-cruises-4u.co.uk page was returned as the homepage?Colin

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

        Hey Colin,

        Highly recommend redirecting the index.cfm Page to /

        The easiest way would be;

        Redirect 301 /index.cfm http://www.nile-cruises-4u.co.uk/
        
        Check out www.sitepoint.com/htaccess-for-all/ for more details on htaccess.
        
        Redirection like this prevents duplicate content, but also improves usability. 
        
        NOTE: This has been edited to fix the issue highlighted below.
        
        Cheers Dan
        
        NileCruises 1 Reply Last reply Reply Quote 1
        • NileCruises
          NileCruises @djlaidler last edited by

          Hi Dan,

          Thanks very much for that. I've added that to the .htaccess file but whenj I've checked both pages still show.

          I checked again via http://www.webconfs.com/redirect-check.php and then I get this error message:

          Either http://www.nile-cruises-4u.co.uk/index.cfm is NOT REDIRECTING to any URL or the redirect is NOT SEARCH ENGINE FRIENDLY

          I wonder if I've missed something?

          Colin

          ThompsonPaul 1 Reply Last reply Reply Quote 0
          • ThompsonPaul
            ThompsonPaul @NileCruises last edited by

            Colin, if you just copy and pasted the code Daniel provided, there is a typo in his spelling of your domain name - note the extra "s" at the end of the word "Nile".

            If this is the code you're using, the redirect can't work because there is no such page to redirect to (the not redirecting to any url part of the error).

            Did you include the typo in the .htaccess entry you created?

            Paul

            NileCruises 1 Reply Last reply Reply Quote 1
            • NileCruises
              NileCruises @ThompsonPaul last edited by

              Thanks Paul, I hadnt' noticed it.
              I'll amend it now and give it another try.

              Thanks Paul and thanks Dan.

              Colin

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

                Nope, unfortunately still not working.

                Still get the same error message unfortunately.

                Colin

                djlaidler 1 Reply Last reply Reply Quote 0
                • djlaidler
                  djlaidler @NileCruises last edited by

                  Hi Colin,

                  Sorry for the spelling mistake the first response was off my phone. I have fixed the error (removed the s) in the above answer.

                  I added the same line to htaccess and you can try the redirection for yourself.

                  f4240.com/index.cfm

                  and attached my htaccess as a file for reference.

                  If you are still struggling I would do the following. Comment out all other code in htaccess temporarily if there is anything (comment by adding # at start of line) to isolate the issue. Ensure that there is no additional white space in the line. EG/ no additional spaces at end of line etc

                  If you still have no joy, consult your hosting company as they may block htaccess from functioning correctly.

                  Dan

                  htaccess.png

                  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

                  • Need advice on redirects
                    seoanalytics
                    seoanalytics
                    1
                    6
                    54

                  • Redirect Chain Advice
                    Seenlyst
                    Seenlyst
                    0
                    3
                    709

                  • 302 > 302 > 301 Redirect Chain Issue & Advice
                    Everett
                    Everett
                    0
                    3
                    583

                  • To redirect or not to redirect, that is the question
                    CommT
                    CommT
                    0
                    5
                    126

                  • .htaccess 301 Redirect Help! Specific Redirects and Blanket Rule
                    LynnPatchett
                    LynnPatchett
                    0
                    3
                    3.1k

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

                  • Need advice on 301 domain redirection
                    Marcus_Miller
                    Marcus_Miller
                    0
                    3
                    269

                  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