[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread Peter Brodersen
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]+\.h

[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread raisinlove
[A-Za-z0-9] will only match one character. Try this : RewriteEngine on RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1 Ah, good point there. Thanks. However, I'm still experiencing problems displaying any page contained within the folder which holds this htaccess file. I get a 403 Forbidden

[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread Fabrice Lezoray
Raisinlove a écrit : Hi, I realize this isnt specificaly related to php, but most php hi developers are familiar with this. My website uses an index.php file to load all content with a template, using urls like so: http://www.foo.com/index.php?page=splash.html In the same directory, there is a f