how to change my url in .htaccess file?
Example I have a url :
www.mysite.com/folder1/index.php?category=cs
I want it to appear like:
www.mysite.com/folder1/cs
any suggestions please :)
how to change my url in .htaccess file?
Example I have a url :
www.mysite.com/folder1/index.php?category=cs
I want it to appear like:
www.mysite.com/folder1/cs
any suggestions please :)
Try this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /folder1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\/?$ index.php?category=$1 [QSA]
</IfModule>