Re: mod_rewrite issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux