Mobile app version of vmapp.org
Login or Join
Shelton105

: Domain problem: viewing one site OFF another site? I have this scenario: I have a domain, let's call it "mydomain.com". Mydomain.com runs various "sub-sites", e.g.: mydomain.com/shop/view/shop1, mydomain.com/shop/view/shop2,

@Shelton105

Posted in: #Htaccess #Php #Redirects

I have this scenario:


I have a domain, let's call it "mydomain.com".
Mydomain.com runs various "sub-sites", e.g.: mydomain.com/shop/view/shop1, mydomain.com/shop/view/shop2, mydomain.com/shop/view/funkyShop etc


I want to be able to link other URLs to these subsites. For example, if you one of the subsites has the URL "shop1.com", I want to link that to my site. So, basically, if someone goes to shop1.com, it must open mydomain.com/shop/view/shop1. I know this can be done with parked domains and some coding or even a .htaccess file, but my scenario is furhter complicated.

There are cases where the user has a website on, e.g, shop1.com. They just want a subpath, e.g.: shop1.com/shop to point to mydomain.com/shop/view/shop1.

So my questions are:


Is this possible without parking the domain on my account?
Is the solution in the .htaccess file?
How can I make sure that if they open shop1.com/shop that it doesnt just redirect, but actually SHOWS THE CONTENT from my site on their site?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

One way to do this would be to use mod_proxy in apache.

On shop1.com, you could add a rule like the following to a .htaccess for shop1.com:

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /shop mydomain.com/shop ProxyPassReverse /shop mydomain.com/shop

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme