regex - Why this apache rewrite fail? -


i'm using vbulletin 5 , routes requests index.php using rule

# main redirect     rewritecond %{request_uri} !\.(gif|jpg|jpeg|png|css)$     rewritecond %{request_filename} !-f     rewritecond %{request_filename} !-d     rewriterule ^(.*)$ index.php?routestring=$1 [l,qsa] 

it working fine had weird issue .. when click url contating arabic letter "م" redirect fails , 404 ( apache not vbulletin )

for example http://localhost/vb5/forum/main-forum/27-مدرسة solved issue replacing rule

rewriterule ^(.*)$ index.php?routestring=$1 [l,qsa] 

with

rewriterule ^([^.]+) index.php?routestring=$1 [l,qsa] 

and working fine .. i'm curious know why first 1 not working in scenario !


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -