Mayonati
05-26-09, 01:51 AM
Hi,
I have web hosting at a hosting company, and I decided to create a forum and get a new domain for it. I bought the domain from 1&1 (www.oneandone.co.uk/), and set up redirection to point it to my existing website - i.e. www.newdomain.com pointing at www.example.com/Forum where example.com would be my existing domain (with my hosting company), /Forum is from the root directory (public_html), and www.newdomain.com is the new domain that I just purchased.
1&1 provide two different types of redirect - HTTP Redirect and Frame Redirect. When I use HTTP, everything works fine, including cookie persistancy, but the URL changes from www.newdomain.com to newdomain.example.com (The subdomain that I am pointing to).
If I use Frame Redirect, it keeps the URL masking (the URL stays as www.newdomain.com in the address bar), but cookies are no longer persistant; whenever I navigate to a different page, or open in a new window, I have to log in again, although it stays persistant while I browse the board - i.e. I can navigate to a forum, create a post, etc and stay logged in. But if I navigate to another website and then back, I get logged out.
Also interesting is the apparent change in cookie domain - when I was using HTTP redirect, I was logged in as the admin. When I changed to Frame redirect, it logged me out so I logged in as a test user. But when I switched back to HTTP redirect, I was still logged in as admin!
I know that I could change the cookie domain on the forum (PHPBB) to www.newdomain.com, but the problem is that I have both newdomain.co.uk and newdomain.net, so if I set one of them, the other one would cause problems.
So my question is this: How can I set up the redirection from 1&1 so that URL masking remains in place (the address shows as "www.newdomain.co.uk" or "www.newdomain.net"), but cookies remain persistant properly? Bear in mind that I will be redirecting more than one different domain to the hosting, and my hosting company is different to 1&1.
Thanks for any advice! :D
I have web hosting at a hosting company, and I decided to create a forum and get a new domain for it. I bought the domain from 1&1 (www.oneandone.co.uk/), and set up redirection to point it to my existing website - i.e. www.newdomain.com pointing at www.example.com/Forum where example.com would be my existing domain (with my hosting company), /Forum is from the root directory (public_html), and www.newdomain.com is the new domain that I just purchased.
1&1 provide two different types of redirect - HTTP Redirect and Frame Redirect. When I use HTTP, everything works fine, including cookie persistancy, but the URL changes from www.newdomain.com to newdomain.example.com (The subdomain that I am pointing to).
If I use Frame Redirect, it keeps the URL masking (the URL stays as www.newdomain.com in the address bar), but cookies are no longer persistant; whenever I navigate to a different page, or open in a new window, I have to log in again, although it stays persistant while I browse the board - i.e. I can navigate to a forum, create a post, etc and stay logged in. But if I navigate to another website and then back, I get logged out.
Also interesting is the apparent change in cookie domain - when I was using HTTP redirect, I was logged in as the admin. When I changed to Frame redirect, it logged me out so I logged in as a test user. But when I switched back to HTTP redirect, I was still logged in as admin!
I know that I could change the cookie domain on the forum (PHPBB) to www.newdomain.com, but the problem is that I have both newdomain.co.uk and newdomain.net, so if I set one of them, the other one would cause problems.
So my question is this: How can I set up the redirection from 1&1 so that URL masking remains in place (the address shows as "www.newdomain.co.uk" or "www.newdomain.net"), but cookies remain persistant properly? Bear in mind that I will be redirecting more than one different domain to the hosting, and my hosting company is different to 1&1.
Thanks for any advice! :D