Routing remove or add "/"

More
12 years 8 months ago #23668 by igcorreia
Replied by igcorreia on topic Routing remove or add "/"
I see only when we change ADVANCED SEARCH configuration in the fields.

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #25129 by philyanov
Replied by philyanov on topic Routing remove or add "/"
Edit .htaccess

#Add "/"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ /$1/ [L,R=301]
#Or
RewriteCond %{REQUEST_URI} (.*/[^/.]+)($|\?)
RewriteRule .* %1/ [R,L,QSA]

#Remove "/"
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ /$1 [R=301,L]

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #25182 by igcorreia
Replied by igcorreia on topic Routing remove or add "/"
This is pretty nice will try it.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.391 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline