Directory Redirection

Discussion in 'Apache' started by iceman8245, Jan 28, 2017.

  1. #1
    Hi,

    i would like du redirection the following Direction

    Sample :

    from /direction1/this
    to /direction1/this/ (with /)

    Please help me
    Best Regards Ralf
     
    iceman8245, Jan 28, 2017 IP
  2. Tanya Roberts

    Tanya Roberts Active Member

    Messages:
    250
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #2
    I think this is called adding trailing slash, found a solution on stackoverflow: http://stackoverflow.com/questions/11829714/add-trailing-slash-htaccess/11880879#11880879
    Also copying what is inside here:
    
    RewriteCond %{REQUEST_URI} !(/$|\.)
    RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
    
    Code (markup):
     
    Tanya Roberts, Mar 3, 2017 IP