.htaccess - 阿拉伯slu ..

时间:2018-01-17 13:47:57

标签: .htaccess slug

与我的slu is不支持阿拉伯语,当我尝试用阿拉伯语书写时,删除它并用-cat替换它 所以我希望它支持阿拉伯语,我想从整个文件中删除-cat而不仅仅是类别。

Options +FollowSymLinks -MultiViews -Indexes

RewriteEngine On
RewriteBase /


#Category
RewriteRule ^([a-zA-Z0-9_-]+)-cat([a-zA-Z0-9_-]+)-([0-9_-]+)-([0-9_-]+)-([0-9_-]+)$ cat1.php?id1=$2&id2=$3&id3=$4&id4=$5    [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)-cat([a-zA-Z0-9_-]+)-([0-9_-]+)-([0-9_-]+)$    cat1.php?id1=$2&id2=$3&id3=$4    [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)-cat([a-zA-Z0-9_-]+)-([0-9_-]+)$               cat1.php?id1=$2&id2=$3           [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)-cat([a-zA-Z0-9_-]+)$                          cat1.php?id1=$2                  [QSA]

RewriteRule ^([a-zA-Z0-9_-]+)-cat([a-zA-Z0-9_-]+)$  cat1.php?id1=$2
RewriteRule ^([a-zA-Z0-9_-]+)--([a-zA-Z0-9_-]+)-cat([a-zA-Z0-9_-]+)-([a-zA-Z0-9_-]+) cat1.php?id1=$3&id2=$4

RewriteRule ^cat([a-zA-Z0-9_-]+)-([a-zA-Z0-9_-]+)$  cat1.php?id1=$1&id2=$2
RewriteRule ^cat([a-zA-Z0-9_-]+)$                   cat1.php?id1=$1&v=3

RewriteRule ^itm([a-zA-Z0-9_-]+)-edit$              artikel.php?id=$1&create=edit
RewriteRule ^itm([a-zA-Z0-9_-]+)-create$            artikel.php?id=$1&create=created
RewriteRule ^itm([a-zA-Z0-9_-]+)$                   artikel.php?id=$1               [QSA]
RewriteRule ^a/([a-zA-Z0-9_-]+).html$               index.php?id=$1
RewriteRule ^b/([a-zA-Z0-9_-]+)/(.*?)$              kate.php?id=null

ErrorDocument 404 /index.php?error=pagenotload

0 个答案:

没有答案