I am new to mod_rewrite and have been using a generator but it doesn't work. This is an example of what I am trying to achieve.
The original URL:
http://subdomain.domain.com/company.php?test=TES001
The rewritten URL:
http://subdomain.domain.com/company/AAA001
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule company/(.*)/(.*)/$ /company.php?$1=$2
ErrorDocument 404 /
Any help would be appreciated, thanks.