Again about trailing slash
2 posts
• Page 1 of 1
Again about trailing slash
Hi, Andrew, Anton!
I want to clarify the pattern to add trailing spaces:
1) the name of the site, ex site.com -> site.com/
2) the name of the directory at any nesting, ex site.com/news -> site.com/news/
I have(test) next rule
this rule work only for directories names ( /news -> /news/ or /market/goods -> /market/goods/)
Can you suggest a uniform rule for the site name and directory names?
I want to clarify the pattern to add trailing spaces:
1) the name of the site, ex site.com -> site.com/
2) the name of the directory at any nesting, ex site.com/news -> site.com/news/
I have(test) next rule
- Code: Select all
#Fix missing trailing slash char on folders
RewriteRule ^([^.?]+[^.?/])$ $1/ [NC,R=301,L]
this rule work only for directories names ( /news -> /news/ or /market/goods -> /market/goods/)
Can you suggest a uniform rule for the site name and directory names?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Again about trailing slash
Well...
I'd say to try this:
But this is really strange. I can't remember this affecting anything or being necessary for SEO, so why bother?
I'd say to try this:
- Code: Select all
#Fix missing trailing slash char on folders
RewriteRule ^([^.?]*[^.?/])$ $1/ [NC,R=301,L]
But this is really strange. I can't remember this affecting anything or being necessary for SEO, so why bother?
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests