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\.doma inB\.net" [R=301,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.domainA\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.subdomain\.domainB\.
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/subdomain\.doma
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.