- Code: Select all
RewriteRule ^(.*)/(.*)?/?$ /index.php?page=$1&action=$2 [L,QSA]
This works fine, but when I want to make that first slash optional, I add a question mark after it:
- Code: Select all
RewriteRule ^(.*)/?(.*)?/?$ /index.php?page=$1&action=$2 [L,QSA]
but this causes an error (500).
Could somebody explain what I'm doing wrong and why it's wrong?
thanks in advance,
Ben