how to redirect with apache front-end

how to redirect with apache front-end

am 15.11.2007 18:32:09 von sqad

Guys,

I would like to know how this is possible with apache:

We are migrating from a externally hosted (3rd party) issue tracker to
an internal hosted issue tracking system, but we would like to
preserve the old url's when our service provider shuts down the old
service.

Currently issue tracking urls are in the form of:

http://old_domain/issues/show_bug.cgi?id=2164

The new URL's will be of the form:

htt://new_domain/jira/browse/TEST-123

I have a database that has the mapping of the old issue id's to the
new issue id's. How do I set this up so when a user goes to the old
URL, they get re-directed to the new migrated issue in the new issue
tracking system? How does apache redirect allow me to do this dynamic
querying?

Appreciate any links or advise anyone can give me.

thanks,
sqad

Re: how to redirect with apache front-end

am 15.11.2007 18:49:08 von Jim Hayter

sqad wrote:
> Guys,
>
> I would like to know how this is possible with apache:
>
> We are migrating from a externally hosted (3rd party) issue tracker to
> an internal hosted issue tracking system, but we would like to
> preserve the old url's when our service provider shuts down the old
> service.
>
> Currently issue tracking urls are in the form of:
>
> http://old_domain/issues/show_bug.cgi?id=2164
>
> The new URL's will be of the form:
>
> htt://new_domain/jira/browse/TEST-123
>
> I have a database that has the mapping of the old issue id's to the
> new issue id's. How do I set this up so when a user goes to the old
> URL, they get re-directed to the new migrated issue in the new issue
> tracking system? How does apache redirect allow me to do this dynamic
> querying?
>
> Appreciate any links or advise anyone can give me.
>
> thanks,
> sqad

Read the doc on RewriteMap. It allows you to feed the original URL to a
script (among other things) that can do the lookup and return the new
location. That's how I handle similar changes that require a database
lookup.

Jim