The URL I want to use is
http://www.domain.tld/page/action.html => http://www.domain.tld/index.php?page=page&action=action
or
http://www.domain.tld/page/action.html?foo=bar&x=y => http://www.domain.tld/index.php?page=pa ... oo=bar&x=y
(with any number of additional query string components)
Here is my .htaccess
Code: Select all
RewriteEngine On
RewriteRule ^([A-Za-z]+)/([A-Za-z]+)\.html\?(.*)$ /index.php?page=$1&action=$2&$3 [L]
RewriteRule ^([A-Za-z]+)/([A-Za-z]+)\.html$ /index.php?page=$1&action=$2
Can anyone help out?
Cheers