httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alain Roger" <>
Subject [users@httpd] mod_rewrite question
Date Sun, 14 Sep 2008 18:26:13 GMT

i would like to rewrite some of my pages so i have the following .htaccess
file under my subfolder _sub/test/

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^article-([0-9]+)-([0-9]+)\.php$  article.php?numero=$1&page=$2

i also have 1 file article.php which only display the numero and page

therefore when my browser try to reach the page article-1234-5.php (as
written into my address bar of my browser), apache redirect it to

however i get the 500 error.
i do not get the 500 error if i comment the Options +FollowSymlinks (with
#), but in this case i get a 404 Not Found (/_sub/test/article.php)

what is the problem ?

Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

View raw message