WTB Solution - 10 USD for solving - .htaccess addslash for folders nor files (joomla)

Discussion in 'Apache' started by yocredit, May 26, 2010.

  1. #1
    Hi

    I want to add slash only for folders.
    If there is a /folder - slash must be added
    If there is a /folder/ - DON'T TOUCH!
    If there is a file.extension - DO NOT ADD THIS STUPID SLASH after file.extension/

    10 USD for someone who correct my htaccess.

    #add slash at the end
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ http://domain.com/$1/ [L,R=301]

    This one is working fine with folder but not with files.
    Regards
    /Luc

    ps. I am using Joomla 1.5.x with standard core SEF
     
    yocredit, May 26, 2010 IP
  2. yocredit

    yocredit Active Member

    Messages:
    365
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    [solved by myself]
     
    yocredit, May 26, 2010 IP