logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache redirection.
Author
prtemgha



Joined: 08 Aug 2018
Posts: 1
Location: India

PostPosted: Wed 08 Aug '18 13:25    Post subject: Apache redirection. Reply with quote

Hello,

I am using apache 2.4 on a linux box which is in production. at the background it is running jboss servers to serve the site contents.

Now that application is been migrated to some other application.

Now, the users who are using this current application should not use that any more for that i need to redirect them to a custom page. Here is the rediection request:

If the url is something like this

https://example.com/site1/page/project.abcd_test

now I want to search for string abcd_test in the URL and redirect the user to a custom page.

how can this be possible
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Thu 18 Oct '18 10:22    Post subject: Reply with quote

You can use RedirectMatch




RedirectMatch "(.*)\.abcd_test$" "http://other.example.com$1.jpg"
Back to top


Reply to topic   Topic: Apache redirection. View previous topic :: View next topic
Post new topic   Forum Index -> Apache