D
damezumari
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?
If there is no argument in the html page it shall be redirected like
it was before.
Kind regards,
Jan Nordgreen
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?
If there is no argument in the html page it shall be redirected like
it was before.
Kind regards,
Jan Nordgreen