1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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 /)
    SEMrush
    Please help me
    Best Regards Ralf
     
    iceman8245, Jan 28, 2017 IP
    SEMrush
  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