Jorge Fraser
asked on
mod_rewrite rule on HTTP_HOST
We are trying to capture any request that comes into our Apache server with a specific word in the domain and re-direct it to a specific page.
We currently have the following:
RewriteCond %{HTTP_HOST} ^(.*)\.hydrochroma\.(.*)$ [NC]
RewriteRule ^/(.*) http://dev.cp.com [R=301,L]
Basically we want anything with hydrochroma to be re-directed. The above rule traps everything and re-directs.
Any feedback will begreatly appreciated.
We currently have the following:
RewriteCond %{HTTP_HOST} ^(.*)\.hydrochroma\.(.*)$ [NC]
RewriteRule ^/(.*) http://dev.cp.com [R=301,L]
Basically we want anything with hydrochroma to be re-directed. The above rule traps everything and re-directs.
Any feedback will begreatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.