-2

What i want to do is redirect an entire forum temporarily to a Twitter Page.

However anything i've tried hasnt worked.

If they visit for example site.com/Forum it will send them to twitter.com/ourpageForum

How do i just redirect them to twitter.com/ourpage with a 302 no matter what Forum URL they visit?

Thanks

1
  • For simple scenario's like the one above mod_alias is sufficient and is both faster and doesn't have the learning curve of mod_rewrite.
    – HBruijn
    Jul 13, 2014 at 11:23

1 Answer 1

1

The Apache RedirectMatch directive is a fairly trivial method to do as you ask:

RedirectMatch temp ^/Forum/.* http://twitter.com/ourpageForum

temp returns a temporary redirect status (302).

6
  • Thanks and does that redirect all URLs? Im not looking to just redirect the Forum but the entire site which is mainly a forum. Sorry for being confusing.
    – user237462
    Jul 13, 2014 at 10:41
  • Its not just the /Forum URL i want to redirect is what im saying. I just need the root site.com/ and all subfolders redirected. Im waiting on DNS to propagate and cant test right now but i will soon.
    – user237462
    Jul 13, 2014 at 10:48
  • Ah my mistake... RedirectMatch temp ^.* http://twitter.com/ourpageForum should do that!
    – HBruijn
    Jul 13, 2014 at 10:50
  • Seems to just time out if i go to site.com/Forum but works if i go to site.com
    – user237462
    Jul 13, 2014 at 11:01
  • And you wouldn't have another .htaccess file in the Forum directory?
    – HBruijn
    Jul 13, 2014 at 11:09

Not the answer you're looking for? Browse other questions tagged .