What I'm trying to do is setup a rewrite rule so that when a URL is entered it will be displayed as [login to view URL]
So for example, I'm trying to do this if it's even possible.
I've set the CNAME of [login to view URL] to point to [login to view URL] (dev Remote Environment on the vendors side, Company B outside of company A network)
If a user visits [login to view URL] (owned by Company A) the URL will be re-written to something along these lines [login to view URL] (Owned by company A)
What I have so far but doesn't seem to be working, when I visit [login to view URL] it stays as is.
# rewrite rules for [login to view URL]
RewriteCond %{http_host} ^site\.example\.com [NC,OR]
RewriteCond %{http_host} ^www\.site\.example\.com [NC]
RewriteRule $ [login to view URL] [R,L]
Will I need to do a reverse proxy and then re-write from there?
EDIT: I apologize, i should have explained a little better. [login to view URL] is owned by [login to view URL] (company A). So we changed the CNAME to point to [login to view URL] ( [login to view URL] )
and [login to view URL] is our server and dir, trying to rewrite the URL to be [login to view URL] instead of [login to view URL] but still have the content dispalyed from [login to view URL]
Our redirects are setup in [login to view URL] file, not sure if this will help also