Forum Moderators: phranque

Message Too Old, No Replies

url rename

         

seekstewart

8:49 pm on Apr 21, 2005 (gmt 0)

10+ Year Member



whenever apache requests anything from /v/blah.com/ma/www/oos

it should actualy request from there but on the url it should always show www.xyz.com

for example for the file /v/blah.com/ma/www/oos/oos.cgi
the url is [blah.ma.com...]

but on the address bar i want to display www.xyz.com

is this possible

Thanks

sitz

12:52 am on Apr 22, 2005 (gmt 0)

10+ Year Member



I'm not quite following what you're saying here; do you want to see 'http://www.xyz.com/' in the Location bar regardless of what gets clicked on, do you want 'http://www.xyz.com/oos.cgi' to get pulled from /v/blah.com/ma/www/oos, or do you want something else entirely?

seekstewart

2:09 pm on Apr 22, 2005 (gmt 0)

10+ Year Member



whenever someone hits the url
www.xyz.com it should display contents of
[blah.ma.com...]

but on the address bar it should show www.xyz.com

jd01

5:54 pm on Apr 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi seekstuart,

The short answer to your question is... Yes, you can do that.

The slightly longer answer is:
How this is done will depend on the actual specific set-up of your site(s) and your server...
I say this because it looks like you are using a sub-domain, and depending on where and how the sub-domain is hosted (same directory/server or different directory/server) the rewrite process changes.

A couple of other things:
1. Is this the only page you would like displayed this way?

2. If not, the answer to your question might change...
You can do this once and be ok, because you can say 'when this URL is requested, show this.' But, since there are no variables in the URL itself, you will only be able to do this for a single request, and it has to be every request.

3. Are there any variable that change the content of the page that should be displayed... Is it 'dynamic'?
Again, this might change the answer, for the same reasons as above.

Hope this helps.

Justin