FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 06-04-2008, 03:33 PM
Gary
 
Default 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@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 03:56 PM
 
Default mod_rewrite issue

Gary,

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.

Russ
Sent from my Verizon Wireless BlackBerry

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

Date: Wed, 4 Jun 2008 08:33:38
To:centos@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@centos.org
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 04:02 PM
Gary
 
Default mod_rewrite issue

On Wed, Jun 4, 2008 at 8:56 AM, <russ@vshift.com> wrote:


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.
Thanks, that did the trick! I was staring at the docs for mod_rewrite and actually gave a long look at the proxy flag -- guess I should have tried it instead of posting.


muchas gracias,
Gary

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 04:02 PM
Craig White
 
Default mod_rewrite issue

On Wed, 2008-06-04 at 08:33 -0700, Gary wrote:
> 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.
----
I use rewrite rules in .htaccess in drupal directory...

# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Craig

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 09:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org