test.domain.com to domain.com/phpscript.php?name=test

Using a single web hosting account to host multiple sites

test.domain.com to domain.com/phpscript.php?name=test

Postby kauffjd3 » Wed Sep 23, 2009 6:18 am

It sounds like a real simple rewrite but i'm just going in circles.

Link: http://test.domain.com
Mask to: http://domain.com/find/index.php?target ... ew&id=test

Paths:
/home/secures6/public_html/domain.com
/home/secures6/public_html/domain.com/subdomains/test

So if someone types in http://test.domain.com it will mask to http://domain.com/find/index.php?target ... ew&id=test which will by my php script to read the subdomain name that has passed. At all times I want the http://test.domain.com to stay in the url.

I tried this and it just redirected not masked: viewtopic.php?p=15046#15046

Thanks for your time!

Justin
kauffjd3
 
Posts: 2
Joined: Wed Sep 23, 2009 5:49 am

Postby richardk » Wed Sep 23, 2009 9:33 am

/home/secures6/public_html/domain.com/subdomains/test

Can you change it to /home/secures6/public_html/domain.com?
Can you create symbolic links?

How many sub domains will there be?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby kauffjd3 » Wed Sep 23, 2009 11:38 am

Thanks for the response.

I was able to change it to the domain.com folder and the example worked great.
kauffjd3
 
Posts: 2
Joined: Wed Sep 23, 2009 5:49 am


Return to Domain Handling

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron