View previous topic :: View next topic |
Author |
Message |
`VL n00b
Joined: 30 Apr 2004 Posts: 71 Location: Russia
|
Posted: Wed Jul 13, 2005 6:16 pm Post subject: Need help with apache and redirects |
|
|
I have virtual host www.xxx.com with ServerAlias www.yyy.com.
I also have a forum installed in /forum. I want to have only one address for forum,
for cookies to work normally, users should see only www.yyy.com/forum/
So, i`d like to redirect www.xxx.com/forum/ queries to www.yyy.com/forum/.
Also, i have a trailing slash problem: when someone enters www.yyy.com/forum (without slash)
user redirected to www.xxx.com/forum/ . How do i prevent this?
i know it all looks stupid enough, but i need to do it.. please help
P.S. apache is 1.3.33 _________________ Life is too short to be taken seriously. |
|
Back to top |
|
|
thunderlove Tux's lil' helper
Joined: 24 Aug 2004 Posts: 76 Location: Sitting on a stool somewhere in southern oregon
|
Posted: Wed Jul 13, 2005 8:03 pm Post subject: |
|
|
First, this post is off-topic (this isn't a gentoo question, but an apache question)
To answer your question, you cannot: not if you want both sites should use the same cookies. Cookies are domain-specific -- a gentoo.org cookie will never be sent to microsoft.com!
As far as the slash problem goes, it _should_ work that way! consider a simple image on the page 'image.jpg' Without the slash, it would be www.yyy.com/image.jpg and with it www.yyy.com/forum/image.jpg _________________ Registered Linux User #165104 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|