I'm trying to redirect my links like this:
my href = example.com/?p=users&page=2
my URL should be = example.com/users/page/2
At this moment, my mod_rewrite is working with:
my href = example.com/?p=users
my URL = example.com/users
Here is my htaccess:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule ^(.*)$ index.php?p=$1 [L,QSA]
</IfModule>
hrefto your desired (canonical) URL. Otherwise (once implemented) you will end up redirecting every request to the canonical URL (potentially slow for users, twice the server hit, etc.).