[CentOS] mod_rewrite issue

russ at vshift.com russ at vshift.com
Wed Jun 4 15:56:49 UTC 2008


While this is a CentOS list and you would probably get better help on the apache httpd list, I think you're looking for the P flag.  Your web server will proxy the request for you.  Keep in mind that the source ip of such requests will be your server, although I believe certain headers get set with the original ip of the client. 

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Gary <gdriggs at gmail.com>

Date: Wed, 4 Jun 2008 08:33:38 
To:centos at centos.org
Subject: [CentOS] mod_rewrite issue

I'm installing Drupal 6.2 in the document root of a CentOS 5 install using httpd-2.2.3-11.el5_1. I'm using a virtual host entry with the following rewrite rule to enable "clean" URLs: 
RewriteRule ^(.*)$ index.php?q=$1 [R,L,QSA] 
This works fine expect the user still sees the "ugly" URL in the address bar. However, if I remove the R, it breaks completely. Any clues? I can send more of my httpd.conf if you think it'll help. 
much thanks,
 Gary _______________________________________________
CentOS mailing list
CentOS at centos.org

More information about the CentOS mailing list