Pretty urls and trailing slash removal

Permalink
It seems to me that C5 with pretty urls (read htaccess mod-rewrite) puts a trailing slash on the end of all urls.
Search engines will tend to treat 'www.myc5site.com/about/' and 'www.myc5site.com/about' as two separate urls initially leading to a concern over page rank dilution/penalisation

Can some one from C5 team weigh in here and determine once and for all if this is reversible - as in no trailing slash - and if the SEO anxiety around it is justified or not?

I have picked up a htaccess rule from other threads to remove the slash but it would be great to clear this up unequivocally

alanski
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Share your .htaccess files code here.

Rony
alanski replied on at Permalink Reply
alanski
My bad - my htaccess doesnt remove slash it forces the slash on all urls
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ /$1/ [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --
nicolaikr replied on at Permalink Reply
So, for anyone who find this:
We solved it by adding
RewriteCond %{REQUEST_URI}  !\.(.*)$
RewriteRule ^(.*)([^/])$ https://%{HTTP_HOST}/$1$2/ [L,R=301]

Just after
<IfModule mod_rewrite.c>
RewriteEngine On


(Concrete5 v. 5.6.3.1)

Edit: The first version posted broke the login. I have updated with the new code, it should work now.
appsoft replied on at Permalink Reply
We are having the same issue. For SEO purposes we would like to remove the trailing slash but when I put in the Rewrite rule to remove the trailing slash CC5 seems to break. Is there a work around for this?
brownwingstudio replied on at Permalink Reply
brownwingstudio
Anyone have any new insight about this question? I have a client who is concerned about this.
glin425 replied on at Permalink Reply
Has anyone had any success with this? I have a similar issue going on.
kirkroberts replied on at Permalink Reply
kirkroberts
Grave digging here, but I found a post that seems to address this issue nicely (removing the trailing slash on all URLs and not breaking Concrete5):http://www.extreme-creations.co.uk/blog/how-to-remove-a-trailing-sl...
gowiththetimes replied on at Permalink Reply
This helped me too, I've linked to this blog from my own sitehttps://www.gowiththetimes.co.uk...