Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with apache and redirects
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
`VL
n00b
n00b


Joined: 30 Apr 2004
Posts: 71
Location: Russia

PostPosted: Wed Jul 13, 2005 6:16 pm    Post subject: Need help with apache and redirects Reply with quote

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
View user's profile Send private message
thunderlove
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2004
Posts: 76
Location: Sitting on a stool somewhere in southern oregon

PostPosted: Wed Jul 13, 2005 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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