Home RewriteRule with apache 2.4 rerturn 404 not found for specific utf8 character in URL
Reply: 0

RewriteRule with apache 2.4 rerturn 404 not found for specific utf8 character in URL

Amir
1#
Amir Published in 2017-12-05 11:18:32Z

I have this URL in my local: http://127.0.0.1:8080/folder1/folder2/%D9%85-123.html and following RewriteRule in .htaccess

RewriteRule ([^/]+)(/?(.{2,}))?-l?([0-9]+).html$ index.php?page=$1&Var=$3&id=$4 [QSA,L]

%D9%85 is character م in my language.

It should assign folder1 to page and 123 to id

It works for id but does not work for page and return 404 not found.

The problem is only for URL strings which contain this character. It seems There is no problem with any other string.

I have apache 2.4- PHP 5.6 - Mysql 5.5

Many thanks.

EDIT: it assigns م to page.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.32608 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO