httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "thomas Armstrong" <>
Subject [users@httpd] Problems with an extra Rewrite Rule before a RewriteCond
Date Wed, 30 May 2007 15:46:25 GMT

I'm trying to create an additional Rewrite Rule appart from those
created by default by my application (in this case, Wordpress). The
extra line (within '.htaccess') is:
RewriteRule ^faq index.php?page_id=119 [R,L]

However, I want users see '' and not
''. This line works with other
Apache configurations, but not with mine. Any suggestion?

RewriteEngine On
RewriteBase /
DirectoryIndex index.php

RewriteRule ^faq index.php?page_id=119 [R,L]

# Rewrite to
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule ^(.*) http://%1/$1 [R,L]

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message