CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   mod_rewrite help (http://www.codingforums.com/showthread.php?t=279916)

datex 10-28-2012 06:50 PM

mod_rewrite help
 
Hi

I hope you can help me - since I'm a total newbie. What I want to achieve is:

When visiting the domain it should show a page from another domain (but still keep the original domain:

www.mydomain.com -> shows -> https://www.theotherdomain.net/?prog_id=XXXX
mydomain.com -> shows -> https://www.theotherdomain.net/?prog_id=XXXX

When clicking at links at my site - it should show the page form the other domain - but still keping my domain:

www.mydomain.com/page1 -> shows -> https://www.theotherdomain.net/page1

some of the pages - at the other site are at another subdomain - but they should do the same as the above

www.mydomain.com/page100 -> shows -> https://subdomain.theotherdomain.net/page100

However - when the pages belong to a certain subdomain https://subdomaispec.theotherdomain.net/page100 - the site should just be showed normal: https://subdomaispec.theotherdomain.net/page100

Is it possible??

stevenmw 10-29-2012 10:08 AM

If you could tell me why you want to do this i might give me an idea of the best way to achieve something similar to wha you want.

You do know that if you own multiple domains you can tie them together so each site is exactly the same right? But since you're wanting to pull pages from the second domain I assume you probably don't want to do that.

Again, if you can tell me why I might get a better idea.


All times are GMT +1. The time now is 01:25 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.