damezumari wrote:
> My current .htaccess file looks like this:
>
> Options +Indexes
> Options +FollowSymlinks
> RewriteEngine on
> RewriteRule ^(.*).html$ index.php?page=$1 [L]
>
> So when the url is test.html it is redirected to index.php?page=test.
>
> I would like to send a parameter like this: test.html?id=8 and have it
> redirected to index.php?page=test&id=8.
>
> How do I change the rewriterule to achieve that?
RewriteRule ^(.*).html$ index.php?page=$1 [L,QSA]
QSA stands for "Query String Append"
http://httpd.apache.org/docs/2.2/mod...ml#rewriterule
--
Kim André Akerĝ
-
(remove NOSPAM to contact me directly)