Operating System - HP-UX
1833454 Members
3231 Online
110052 Solutions
New Discussion

Mod_rewrite for HP Apache2.x

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Mod_rewrite for HP Apache2.x

Hi,

I want to write HP Apache2 redirect using mod_rewrite.

I am trying to redirect a traffic say:-

From the site; https://www.abc.com/rose/was.jsp

To the site:

https://www.abc.com/pink/test.html

I have been trying for couple of hours unsuccessfully but still no luck.

Can someone suggest mod-rewrite syntax/example for the above?

Thanks,
Shiv
2 REPLIES 2
Ivan Krastev
Honored Contributor
Solution

Re: Mod_rewrite for HP Apache2.x

Use the foloowing:

RewriteEngine on
RewriteRule ^rose/was.jsp /pink/test.html [R=301,L]


regards,
ivan
Kenan Erdey
Honored Contributor

Re: Mod_rewrite for HP Apache2.x

Hi,

you can also use redirect in mod_alias.

Redirect /rose/was.jsp /pink/test.html

for your other questions that will be about rewrite please refer to this guide:

http://httpd.apache.org/docs/2.0/en/rewrite/rewrite_guide.html

Kenan.
Computers have lots of memory but no imagination