hello all,
can we have >1 domain pointing to the same application on the same server, the application interpreting the difference by a variable passed?
e.g.
220.xx.xx.xx <- ww.server.com
ww.serviceA.com -> ww.server.com/serviceA (?id=serviceA)
ww.serviceB.com -> ww.server.com/serviceB (?id=serviceB)
application in server.com uses mod_rewrite to change /serviceX to ?id=serviceX
When we register ww.serviceA.com, can we map it to a name server and pass a variable...?
I'm not positive, but it sounds like you would be better served using Apache virtual hosting. Define a virtual host for both ww.serviceA.com and ww.serviceB.com. If you need to map the connections to something specific (ie. ?id=serviceA), then you could perhaps define a RewriteRule within each virtual host, which redirects / to something else.
Bookmarks