JavaDziner
11-11-2009, 01:44 PM
I have a question about redirecting domain methods. I want to use something very simple, to accomplish a simple task.
The task -
My website, for example, is www.mysite.com, and I would like to have my customers choose a domain name for their business, and then have their domain redirect to my site.
So if they had www.theirsite.com, I would want it to go to my site at, for example, www.mysite.com/customers/index.jsp
What is the easiest way to go about doing that? I recently bought an additional domain to test this all out. I'm in testing phase on my website.
I did some googling on this topic, and I have found the following options:
mod_rewrite (module)
mod_alias (module)
<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=www.mysite.com/customers/index.jsp">
I like the 3rd option because it is the simplest. But the problem with the meta-http refresh is that it has been acting in this way - I access www.theirsite.com and it redirects to http://www.theirsite.com/www.mysite.com/customers/index.jsp
Why is it appending the url to the current one like that???
The task -
My website, for example, is www.mysite.com, and I would like to have my customers choose a domain name for their business, and then have their domain redirect to my site.
So if they had www.theirsite.com, I would want it to go to my site at, for example, www.mysite.com/customers/index.jsp
What is the easiest way to go about doing that? I recently bought an additional domain to test this all out. I'm in testing phase on my website.
I did some googling on this topic, and I have found the following options:
mod_rewrite (module)
mod_alias (module)
<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=www.mysite.com/customers/index.jsp">
I like the 3rd option because it is the simplest. But the problem with the meta-http refresh is that it has been acting in this way - I access www.theirsite.com and it redirects to http://www.theirsite.com/www.mysite.com/customers/index.jsp
Why is it appending the url to the current one like that???
