How to redirect home.co.uk to home.co.uk/
-
Hi, We recently moved to shopify and noticed that our home page is now .co.uk/ (with backslash) instead of .co.uk As both are returning 200 ok I am concerned that this could cause a duplicate content issue. Could anyone please advice on the best way to fix this? Thanks, Paul
-
I'm pretty sure you don't need to worry about that for duplicate content.
I've never used Shopify but believe they host the website for you. In that case I would ask them to fix this issue for you. Here is .htaccess code to remove trailing slash though:
RewriteBase /
RewriteRule ^(.*)/$ $1 [R,L]
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
-
Is there an SEO advantage to blog content being a child of /blog/ rather than the homepage?
I'm working on a website where all the blog content is listed as separate pages from the homepage, eg: www.domain.com/first-blog-post
Technical SEO | | MillyShaw
www.domain.com/second-blog-post However, it would make my life easier if all blog content was listed under /blog/ so that I could analyse it better in Google Analytics. Eg I'd like it to be: www.domain.com/blog/first-blog-post
www.domain.com/blog/second-blog-post The developer is not keen because it would create extra work for him, and he's also said it's a bad idea from an SEO point of view. But is this the case? Presumably with 301s in place it wouldn't make a difference? Thanks for your help!0 -
Are these redirects damaging my rankings
Hi, just been going through my google webmaster tools and i have found a number of soft 404 errors and was shocked to see these redirects going to my home page. | URL | Response Code | Detected |
Technical SEO | | ClaireH-184886
| --- | --- | --- |<colgroup><col style="width: 45px;"><col style="width: 80px;"><col><col style="width: 120px;"><col style="width: 90px;"></colgroup>
| | 1 | staging1/jupgrade2/component/k2/item/475-gastric-band-hypnotherapy-expert-says-government-are-not-doing-enough-to-fight-obesity | | 7/25/13 |
| | 2 | staging1/jupgrade2/category-menu/item/1068-coronation-street-nick-proposes-to-leanne | | 7/28/13 |
| | 3 | staging1/jupgrade2/category-menu/item/1086-coronation-street-fiz-nearly-gets-tyrone-in-trouble-with-kirsty | | 7/28/13 |
| | 4 | staging1/jupgrade2/category-menu/item/1155-coronation-street-kylie-considers-telling-david-about-her-affair | | 7/28/13 |
| | 5 | staging1/jupgrade2/category-menu/item/1157-coronation-street-fiz-is-worried-when-kirsty-pays-her-a-visit | | 7/28/13 |
| | 6 | staging1/jupgrade2/component/k2/item/750-actress-hilary-duff-is-sued-over-car-accident | | 7/25/13 |
| | 7 | staging1/jupgrade2/component/k2/item/843-what-your-dogs-bottom-scooting-behaviour%E2%80%99-really-meansI would have thought that the developer who upgraded my site would have either had these blocked or directed them to the correct page. i am now guessing that there are going to be hundreds of these appearing and would like some serious advice.normally with old pages i would have them going to the relevant articles or pages but it seems the developer has redirected hundreds of these to my home page, which i guess is going to confuse google. i would like to know if this will confuse google have all these pages going to my home page.i have tried to find out where the developer in my site has redirected the pages as they are not in my htaccess file, i use joomla.can anyone let me know what i should be doing with these to solve the problemmany thanks |0 -
Where is the 301 redirect?
Hi, in the last week I take an issue for 301 permanent redirect for a subfolder in the main website! In that folder i have a index.php file for a google map fullscreen edition and the only link who connects the wordpress website with the subfolder is only a direct link! Is that an error of seomoz app or something else? Thanks 1.jpg
Technical SEO | | petrospan0 -
How best to deal with www.home.com and www.home.com/index.html
Firstly, this is for an .asp site - and all my usual ways of fixing this (e.g. via htaccess) don't seem to work. I'm working on a site which has www.home.com and www.home.com/index.html - both URL's resolve to the same page/content. If I simply drop a rel canonical into the page, will this solve my dupe content woes? The canonical tag would then appear in both www.home.com and www.home.com/index.html cases. If the above is Ok, which version should I be going with? - or - Thanks in advance folks,
Technical SEO | | Creatomatic
James @ Creatomatic0 -
301 Redirect / cross-domain canonical to a URL w/ Ampersand
I have a question regarding ampersands, we are needing to redirect to a URL w/ an ampersand in the URL: http://local.sfgate.com/b18915250/Sam-&-Associates-Insurance-Agency Will Google pass page authority/juice despite the fact that there is an ampersand in the URL, if we were to 301 redirect or cross-domain canonical to the url? Should we 301 redirect to http://local.sfgate.com/b18915250/Sam-%26-Associates-Insurance-Agency instead of http://local.sfgate.com/b18915250/Sam-&-Associates-Insurance-Agency? I don't have the option of removing the ampersand Thank you for your time!
Technical SEO | | Gatelist0 -
301 Redirect
Need a little bit of help on this one. I have a product page which actually has 3 products on the page in question: www.example.com/products I thought it would be best for each product to have a page on its own: www.example.com/product-1 www.example.com/product-2 www.example.com/product-3 however my question is: The page with the 3 products www.example.com/products where should the 301 go to? Can you do a 301 to all the new product pages? Hope that makes sense Kind Regards,
Technical SEO | | Paul780 -
Google Off/On Tags
I came across this article about telling google not to crawl a portion of a webpage, but I never hear anyone in the SEO community talk about them. http://perishablepress.com/press/2009/08/23/tell-google-to-not-index-certain-parts-of-your-page/ Does anyone use these and find them to be effective? If not, how do you suggest noindexing/canonicalizing a portion of a page to avoid duplicate content that shows up on multiple pages?
Technical SEO | | Hakkasan1 -
New website branding, differences between http://www and http://
Hey Mozers! We will be creating another brand pretty soon with some pretty cool interactive features and before we start development of the site I was wondering if there are any pros/cons to branding the site sans the www. For example http://example123.com and http://www.example123.com. I would much prefer to brand it has http://example123.com but I just wanted to check first to see if that would have any negative SEO ramifications. It seems that it might just be a preference as I looked at Facebook and Twitter and they both do it differently, same with Groupon and LivingSocial. Looking forward to hearing from you guys!
Technical SEO | | Riggz1