simnex
02-01-2007, 09:47 AM
I'm hoping someone can shine some light on this and help me out. I've got an application hosted on my Plesk VPS that users sign up for an account. They end up with an URL that looks something like this
dom.com/u/1/f/3/t/a/
What I want to offer is a domain mapping service so they can give their users their own URL, so instead of dom.com they can give out theirurl.com or more accurately sub.theirurl.com and that stays in the address bar when visitors hit their page on my app.
What I'm thinking is getting them to set up a cname pointing to my URL, put my domain on a static IP and then do some mod_rewrite magic to handle and dispatch incoming requests.
Would this work?
Any ideas on what the mod_rewrite magic should look like?
BTW, I can't use frames and the such as the page they hit needs the header for the browser to parse it properly.
To give people a real life reference point it would be similar to URL mapping that say Moveable Type or Wordpress offer to their users.
Any help much appreciated.
Gary
dom.com/u/1/f/3/t/a/
What I want to offer is a domain mapping service so they can give their users their own URL, so instead of dom.com they can give out theirurl.com or more accurately sub.theirurl.com and that stays in the address bar when visitors hit their page on my app.
What I'm thinking is getting them to set up a cname pointing to my URL, put my domain on a static IP and then do some mod_rewrite magic to handle and dispatch incoming requests.
Would this work?
Any ideas on what the mod_rewrite magic should look like?
BTW, I can't use frames and the such as the page they hit needs the header for the browser to parse it properly.
To give people a real life reference point it would be similar to URL mapping that say Moveable Type or Wordpress offer to their users.
Any help much appreciated.
Gary