Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
a simple Apache redirect?
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
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Fri Dec 19, 2008 11:00 am    Post subject: a simple Apache redirect? Reply with quote

It should be so simple, but I can't get it to work... :oops:


All I need is a redirect which sends people heading for http://www.meulie.net/portal_plugins/forum/[whatever] to http://different.domain.com/

I tried
Code:
Redirect /portal_plugins/forum/* http://different.domain.com/

But that doesn't seem to do the trick...
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri Dec 19, 2008 11:10 am    Post subject: Reply with quote

It should work without the wildcard and trailing slash(es). And I guess you want it as a permanent redirect.
Code:
Redirect permanent /portal_plugins/forum http://different.domain.com

Of course you need mod_alias to be enabled. And it should be put at a correct place in the config.

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Fri Dec 19, 2008 11:52 am    Post subject: Reply with quote

Looks like I had forgotten a AllowOverride All... :oops:


Now it works like a charm. Thanks for the help :-)
_________________
Greetz,
Evert Meulie
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