Removing - ?PHPSESSID from a URL

by Francis 2012-09-28 10:13:17

Removing PHP SESSION ID from a URL,

1. Add the following code to the .htaccess file:

<IfModule mod_rewrite.c>

RewriteEngine On

#remove PHPSESSID

RewriteCond %{QUERY_STRING} PHPSESSID=.*$

RewriteRule .* %{REQUEST_URI}? [R=301,L]

</IfModule>
772
like
8
dislike
1
mail
flag

You must LOGIN to add comments