Site is hosted at
http://www.xxxxx.com
URL for site needs to be changed, (not redirected), to a subdirectory on a different domain that is already hosting a site.
http://www.yyyyy.com/subdirectory
When somebody visits http://www.xxxxx.com the url needs to read http://www.yyyyy.com/subdirectory instead of http://www.xxxxx.com.
I have been making changes to my site's .htaccess file and the closest I can get to accomplishing my goal is redirecting the site to the new address. Using the example URL's above, here is the code I have used to accomplish that:
- Code: Select all
RewriteCond %{HTTP_HOST} ^(.*)xxxxx [NC]
RewriteRule ^(.*)$ http://www.yyyyy.com/subdirectory/$1 [R=301,L]
Is what I am trying to do even possible to do? Changing the URL so it reads something else?
I would greatly appreciate any help on this.
Thanks!