Redirection Help -Strange problem

Discussion in 'Apache' started by Professional Dude, Nov 9, 2008.

  1. #1
    Hello

    My script won't work with when there is no slash at the end of the url, so I some kind of redirection code that will add "/" to every url accessed,

    In that case there will be no error

    My current .htaccess file has the following content.

    #Options +FollowSymlinks
    RewriteEngine On
    
    RewriteRule ^(.*)/(.*)/$ index.php?k=$1&v=$2 [nc]
    
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^.*$ - [S=44]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=44]
    
    RewriteRule ^(.*)/$ index.php?k=$1 [nc]
    
    
    
    Code (markup):

     
    Professional Dude, Nov 9, 2008 IP
  2. Professional Dude

    Professional Dude Prominent Member

    Messages:
    6,261
    Likes Received:
    430
    Best Answers:
    0
    Trophy Points:
    330
    #2
    No one can help me? :(
     
    Professional Dude, Nov 21, 2008 IP