Ever considered forwarding to a single prefix?
Ever considered forwarding to a single prefix?
Author
Discussion

Salgar

Original Poster:

3,285 posts

213 months

Thursday 5th May 2011
quotequote all
My troubles are thus:

I use www.pistonheads.com and am logged in there and everything is wonderful.

A friend uses pistonheads.com and whenever he sends me links without the www I read the post and click on reply and OHNO I'm not logged in, because my login cookie is for www.pistonheads.com

The usual solution to this problem for most websites is that most prefixes are just redirects to a central one.

e.g. on my site I have <site>.com and <site>.co.uk and www.<site>.co.uk all forward to www.<site>.com on entry.

Would you ever consider doing this? It would save me typing www about 10 times a day, and would take 6 minutes to implement.

My 2c.

abarth500

2,788 posts

186 months

Friday 6th May 2011
quotequote all
You should still be logged in, regardless of which url you are sent to. Which browser are you using?

edited: ahh, see what you mean, just tried it again on .co.uk and asks me to login hehe

Mr Will

13,719 posts

235 months

Friday 6th May 2011
quotequote all
Solving the logged in/not logged in problem is on the to-do list, but unfortunately not a priority at the moment. frown

In the mean time, have you considered just logging in to pistonheads.com as well as www.pistonheads.com? There is nothing stopping you from being logged in to both and it would stop you having to edit the URL each time!

mx5tom

573 posts

202 months

Friday 6th May 2011
quotequote all
Wouldn't a simple 301 redirect from the other URLs (e.g using a .htaccess file) solve this pretty easily?

Salgar

Original Poster:

3,285 posts

213 months

Friday 6th May 2011
quotequote all
Mr Will said:
Solving the logged in/not logged in problem is on the to-do list, but unfortunately not a priority at the moment. frown

In the mean time, have you considered just logging in to pistonheads.com as well as www.pistonheads.com? There is nothing stopping you from being logged in to both and it would stop you having to edit the URL each time!
No but...

mx5tom said:
Wouldn't a simple 301 redirect from the other URLs (e.g using a .htaccess file) solve this pretty easily?
This.

Podie

46,649 posts

304 months

Friday 6th May 2011
quotequote all
Mr Will said:
Solving the logged in/not logged in problem is on the to-do list, but unfortunately not a priority at the moment. frown
Out of curiosity, what is the priority?

Mr Will

13,719 posts

235 months

Friday 6th May 2011
quotequote all
mx5tom said:
Wouldn't a simple 301 redirect from the other URLs (e.g using a .htaccess file) solve this pretty easily?
It would, but for some reason (which I cannot remember) we do not want to do it that way...

Mr Will

13,719 posts

235 months

Friday 6th May 2011
quotequote all
Podie said:
Out of curiosity, what is the priority?
Various things in the classifieds at the moment

Salgar

Original Poster:

3,285 posts

213 months

Friday 6th May 2011
quotequote all
the only other way to do it (that I can think of), is changing the domain on the cookies to something like .pistonheads.com (or something, it eludes me), but the 301 htaccess thing is much neater.