[haiku-web] Re: Ticket #2456: rewrite bugs.haiku-os.org URLs to dev.haiku-os.org

  • From: "Urias McCullough" <umccullough@xxxxxxxxx>
  • To: haiku-web@xxxxxxxxxxxxx
  • Date: Tue, 5 Aug 2008 14:18:23 +0000

2008/8/5 Gavin James <gavin.james@xxxxxxxxx>:
> On Tue, Aug 5, 2008 at 10:37 AM, Niels Reedijk <niels.reedijk@xxxxxxxxx> 
> wrote:
>> Hi gang,
>>
>> I would like to have bugs.haiku-os.org redirect to dev.haiku-os.org.
>> Preferably, I'd want it to be automated and flexible, but the question
>> is whether I can do that with Apache's rewrite engine. For example, if
>> I enter bugs.haiku-os.org/wiki, I would like it to be redirected to
>> dev.haiku-os.org/wiki (and I would like that reflected in my address
>> bar in my local browser). Any hints on how to accomplish this?
>
> Have bugs.haiku-os.org point to a bugs directory in webspace, put an
> .htaccess file in there with a rule to redirect anything to
> dev.haiku-os.org... something like:
>
> RewriteEngine On
> RewriteRule (.*) http://dev.haiku-os.org/$1 [R]
>
> The [R] sends a redirect header to the browser rather than rewriting 
> internally.

Neat - I also have a small project (beos/haiku related) that may
benefit from this feature as well...

I need to learn Apache better ;)

Gavin, I may pick your brain a bit in the future if that's ok...

- Urias
-----------------------------------------------------------------------
haiku-web@xxxxxxxxxxxxx - Haiku Web & Developer Support Discussion List

Other related posts: