that's my mod_rewrite rules for lighttpd:
url.rewrite-once = (
"^/label/([-'\./\+a-z0-9A-Z]+)/$" => "/index.php?page=label&label=$1",
"^/riddim/([-'\./\+a-z0-9A-Z]+)/$" => "/index.php?page=riddim&riddim=$1",
"^/([a-z]+)$" => "/index.php?page=$1",
"^/(!?pma)([a-z]+)/?$" => "/index.php?page=$1"
)
The problem is that the character ' (39 .d) is somehow breaking the link and I get a 404 error.
/riddim/Some+Thing+Here+9.38/ --> works, page is shown
/riddim/Someone's+Stuff+Here/ --> fails, page not found 404 error
I have already tried using "^/riddim/(.+)/$" and it works, so I guess the ' is breaking the link/mod_rewrite. I even tried escaping the char (using: \'), even though I never heard of a regex engine using ' as some special character, but that failed, too.
The lighttpd is running on the webserver, on my computer I'm using XAMPP with apache, I set the same regex/rules there and it works just fine:
RewriteEngine on
RewriteRule ^/label/([-'\./\+a-z0-9A-Z]+)/$ /index.php?page=label&label=$1
RewriteRule ^/riddim/([-'\./\+a-z0-9A-Z]+)/$ /index.php?page=riddim&riddim=$1
RewriteRule ^/([a-z]+)$ /index.php?page=$1
What am I doing wrong?