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: Question: How to perform redirect within <VirtualHost>
Author
Bravoeb



Joined: 07 Oct 2013
Posts: 2
Location: USA, Hampton

PostPosted: Tue 08 Oct '13 17:37    Post subject: Question: How to perform redirect within <VirtualHost> Reply with quote

What is the proper syntax to perform a redirect within the <VirtualHost:443> section of the httpd.conf file?

The issue is: I have an existing login URL path that has changed slightly. As an example, let's say the old URL is: "https://www.something.net/item1/item2/login.jsp" but now there's a "new" name for 'item2'.

I only want a user to be automatically redirected to the "new" path, but is ONLY triggered when the "old" login URL path is entered and nothing else.

Thanks in advance...
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Tue 08 Oct '13 19:32    Post subject: Reply with quote

You can try:

RewriteEngine on
RewriteRule /item1/item2/login.jsp https://www.something.net/item1/new/login.jsp [R=301,L]

Steffen
Back to top
Bravoeb



Joined: 07 Oct 2013
Posts: 2
Location: USA, Hampton

PostPosted: Tue 08 Oct '13 20:02    Post subject: Reply with quote

Steffen...it works! Thank you so much!

Ed
Back to top


Reply to topic   Topic: Question: How to perform redirect within <VirtualHost> View previous topic :: View next topic
Post new topic   Forum Index -> Apache