Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Automatically redirecting with trailing slashes
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Automatically redirecting with trailing slashes

Automatically redirecting with trailing slashes 17 years, 7 months ago #1736

Hi, I use joomSEF on my website and it is an invaluable tool.

I use the following structure for my SEF URLs:

www.mysite.com/section/article-name-here/

The problem is, because I am emulating a directory tree, when visitors type in a URL they often leave off the trailing slash:

www.mysite.com/section/article-name-here

Is there any way I can have joomSEF handle this automatically?

Also it would be ideal to have:

www.mysite.com/section/article-name-here...hingfurthertypedhere

Redirect to the article too.

Thanks in advance.
James

Re:Automatically redirecting with trailing slashes 17 years, 7 months ago #1790

Just to let you know I have solved this problem but setting up some custom redirect rules in my .htaccesss. It is a shame there isn't an option to do this in JoomSEF.

Here are my redirects:
RewriteRule ^articles/([-a-zA-Z0-9]+)$ /articles/$1/ [R,L]
RewriteRule ^articles$ /articles/ [R,L]
RewriteRule ^forum$ /forum/ [R,L]


Please add this functionality to JoomSEF!

-James

Re:Automatically redirecting with trailing slashes 17 years, 7 months ago #1819

  • jirka
Hello James,

thank you for posting your solution and .htaccess directives code here.

I believe this may be a appreciated by many users who wish to have the same functionality.

To make sure that both htttp://xy.z/page/ and htttp://xy.z/page work can be handled most effectively only on .htaccess level as you did it. However as such behavior is not always desirable, we do not plan to make this default part of JoomSEF. We believe all users who want to have a functionality like you will either find this solution here or on other forums.

We will also consider adding this as a tip to the documentation.

Best regards,
ARTIO Support Team
  • Page:
  • 1
User Login Empty