我试图在执行同一页面时将URI转换为阿拉伯语,但是不幸的是,在URI转换时我遇到了404错误(找不到页面)阿拉伯语
这是我的代码:
AddType 'text/html; charset=UTF-8' html
RewriteEngine on
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{HTTP:Accept-Language} ^ar [NC]
RewriteRule ^$ ./ar/ [L,R=301]
RewriteRule ^ar/([a-z0-9].*)-id([0-9].*).html$ index.php?page=propriete-details&id=$2&lang=ar [L]
RewriteRule ^ar/([a-z0-9].*)-([0-9].*).html$ index.php?page=property-listing&id=$2&lang=ar [L]
RewriteRule ^ar/([a-z0-9].*).html$ index.php?page=$1&lang=ar [L]
RewriteRule ^(ar)/?$ index.php?lang=ar [QSA,NC,L]
RewriteRule ^(ar)/([\s\S]*)$ index.php?page=$1&lang=ar [QSA,NC,L]
ErrorDocument 404 /index.php?page=404
我错过了什么吗?预先谢谢你