httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea" <softw...@polin.it>
Subject Re: [users@httpd] Rewrite Rule Question
Date Fri, 28 Feb 2003 11:54:33 GMT
Hi,
put these rules inside the DirectoryBlock into your httpd.conf:

 RewriteEngine On
 RewriteCond %{QUERY_STRING} ^name=([a-z]+)&age=([0-9]+)$ [NC]
 RewriteRule ^$ http://www.mytest.net/%1%2 [NC,R,L]

~Andrea
  ----- Original Message ----- 
  From: Raman Preet Jaiswal 
  To: users@httpd.apache.org 
  Sent: Friday, February 28, 2003 12:39
  Subject: [users@httpd] Rewrite Rule Question


  I need to redirect users to a specific page when I get a request.

  This redirection is based on the parameters I get in my request.

  For example if I receive a request

  www.abc.com?name=rama&age=27  then I want to redirect this to www.abc.com/rama27

  How can this be written in the httpd.conf file as a RewriteRule?



  Thanks

  Raman.

Mime
View raw message