Link to home
Start Free TrialLog in
Avatar of sugadmin
sugadmin

asked on

How do I do a URL Redirect with URL Masking in Apache

Here is what I have but... it's not masking the URL.  

RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.domainA\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.subdomain\.domainB\.net$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/subdomain\.domainB\.net" [R=301,L]
ASKER CERTIFIED SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On the other hand, if you are attempting to "mask" the URL of a remote server, you probably need to set up Apache to work as a proxy.