Page 1 of 1

Leading slashes at end of URL

PostPosted: Wed May 29, 2013 7:37 am
by wood1e
Hi,

I have a client who has URLs http://www.mywebsite.com/fredsplace.html But they have had some duplicate URL issues in that they also appear to have /fredsplace.html/

But I cannot see that it is possible to re-direct all trailing slash pages back to the non trailing slash page?

So

1) Because I don't think it is possible? Unless the client was using Non-HTML URLs

and

2) Am I right?

In which case

3) What would be a good solution? And no changing all the URLs to non-HTML pages is not a good one :)

Many thanks in advance

Re: Leading slashes at end of URL

PostPosted: Thu May 30, 2013 3:41 pm
by edmondscommerce
if you want to redirect urls with .html/ to the same without the trailing slash then this shoudl do it i think:

RewriteRule ^(.*)\.html/ $1\.html [R=301,L]

Re: Leading slashes at end of URL

PostPosted: Thu Jun 06, 2013 1:53 pm
by wood1e
Many thanks I will give it a go.

Re: Leading slashes at end of URL

PostPosted: Fri Jul 04, 2014 9:24 am
by JuzzyC77
Hi guys,

I am new here and I realise this is an old thread but I am also having this problem with one of our client sites.

It only seems to be doing it on the articles for the blog but rather than putting redirects in place I was wondering if anyone new a solution to stop it happening in the first place?

Thanks

Re: Leading slashes at end of URL

PostPosted: Wed Nov 04, 2015 6:19 am
by brucekenway
Hi everyone,
Thank you for sharing great information.

Re: Leading slashes at end of URL

PostPosted: Wed Jul 27, 2016 11:30 am
by jameswarner
Hi,

301 redirect is best options to avoid duplicate URL issue in your website.

recommended to use 301 redirect.

Thanks

Re: Leading slashes at end of URL

PostPosted: Tue Dec 26, 2017 4:06 am
by lytong
Your post is so informative. I love the way it resonates with a lot of people.

Re: Leading slashes at end of URL

PostPosted: Thu Jan 04, 2018 7:19 pm
by patrickV
Hi,

did you check if he has canonical tag enabled ? canonical solve most of internal duplicate problem.