I have a fairly standard mod_rewrite that comes packaged with a CMS called Modx and FURL's are working fine.
It will rewrite
It is configures as below.
# Friendly URLs Part
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.domain.co.uk for SEO
RewriteCond %{HTTP_HOST} !^www\.domain\.co.uk [NC]
RewriteRule (.*) http://www.domain.co.uk/dev/$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ dev/index.php?q=$1 [L,QSA]
Now I want to add an additional condition that will rewrite an additional query string:
- http://www.domain.com/dev/company/*company_id*
- to http://www.domain.com/dev/index.php?q=*page_id*&company_id=*company_id*
Note *company_id* and *company_id* should be numbers in the actual rewrite.
Have tried a number of iterations but still can not get success.
Help appreciated!!