On Thu, 12 Aug 2004 14:19:07 +0200, in php.general you wrote:

>> [A-Za-z0-9] will only match one character. 
>> Try this :
>>  RewriteEngine on
>>  RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1

$1 would be a backreference, but there are no capturing parenthesis.

RewriteRule ([A-Za-z0-9]+\.html)$ /index.php?page=$1

>However, I'm still experiencing problems displaying any page contained 
>within the folder which holds this htaccess file. I get a 403 Forbidden 
>Access error everytime.

It's pretty simple, though: If you get an error, check your error log
for Apache (default written to logs/error.log). It would give you the
reason for you Apache has given a 403-error to the client.

Still, this is not much of a PHP issue. Since Rewrite-magic tend to be
pretty complicated (and there are a couple of misunderstandings
regarding this feature), I do think some Apache mailing lists would be
of more help for you.

-- 
- Peter Brodersen

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to