Redirect advice
-
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
-
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.
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
-
Nope, unfortunately still not working.
Still get the same error message unfortunately.
Colin
-
Thanks Paul, I hadnt' noticed it.
I'll amend it now and give it another try.Thanks Paul and thanks Dan.
Colin
-
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
-
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
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Incomplete Redirect for Domain Migration?
One year ago we migrated domain "X" to domain "Y". We did the proper redirects and used Google Search Console. Everything was done by the book. Now when we enter "Site: X" in Google about 650 results listing the old domain still come up. When clicked these redirect to the new domain. My SEO says that the old domain should not be indexed by Google, that these pages with the old domain should not appear. Is this in fact an incomplete domain migration? Our search traffic dropped considerably when we migrated the domain a year ago. My SEO thinks this may explain the drop. Thanks,
Intermediate & Advanced SEO | | Kingalan1
Alan0 -
External Redirects & SEO
This company page redirects their external clients links: https://www.coinbase.com/clients QUESTION: What effect does this type of redirection have on the SEO going to these client pages, for their clients Websites?
Intermediate & Advanced SEO | | mstpeter0 -
Please Review and Advice!
My site is WordPress Solution Please expert give me some guideline how can i improve my Website's SEO
Intermediate & Advanced SEO | | shakiel0 -
Create a link or redirect?
We have 60 demo movie pages on our site. We no longer link to these movie pages internally, because they are outdated; however, a lot of our partner companies are still linking to these pages. Some of these pages will have 10-15 linking root domains and a page authority of 30+... so pretty decent authority. These pages only include a movie on the pages, no links. I am trying to pass some of the link juice from these pages to other pages on our site. I am wondering if I should: A)Include transcripts on these pages, then link back to our current product page or solution pages? B)Set up redirects from these pages to a product or solution page? C)Set up a redirect to our homepage? Any advice? Thanks, Mike
Intermediate & Advanced SEO | | Mike.Goracke0 -
Redirect or Rewrite? 2 pages ranking
We have two pages ranking for "Custom Web Design" http://www.imageworksstudio.com/custom-web-design ranks higher (consistently 9-13) and http://www.imageworksstudio.com/content/custom-web-design ranks around 35-40 the latter is actually an older version of the article that never was replaced or taken down - but it has the majority of the links to it Wondering if we should update the old content so it is not similar to the one that is ranking better or if we should redirect everything to /custom-web-design to see if it can secure better rankings?
Intermediate & Advanced SEO | | imageworks-2612900 -
Reverse Proxy better than 301 redirect?
Are reverse proxies that much better than 301 redirects? Should I invest the time in doing this? I found out about reverse proxies here: http://www.seomoz.org/blog/what-is-a-reverse-proxy-and-how-can-it-help-my-seo
Intermediate & Advanced SEO | | brianmcc0 -
Renaming primary domain advice
Hi, We have a site www.anteater.com.au. It's a pest control company here in Sydney Australia. Now I've just renamed it to www.anteaterpestcontrolsydney.com.au yesterday for SEO purposes. I'm doing 301 redirects. My question is, is it worth it to do this? Will we have any advantage in the long run with just this URL change? Or would it be better to just leave it as is as www.anteater.com.au Any comments would be appreciated. Cheers.
Intermediate & Advanced SEO | | Peter.Huxley590 -
Global Redirection Rules
SEO Moz Community: After twice changing directory software, I have a ton of 404 errors in Webmaster Tools (over 3,000). I've decided to do 301 redirects but can't manually enter in each 404 URL. How can you redirect pages from the same folder on a mass scale? For example, mysite.com/autos has hundreds of pages associated with it (/autos/ford, toyota etc.) How can you do a 301 that redirects all those pages without manually entering in each URL? Site is built on Wordpress
Intermediate & Advanced SEO | | JSOC0