我想将domain.tld / index.php?a = value重写为domain.tld / value
例如
domain.tld / index.php?a =与domain.tld / contact的联系
domain.tld / index.php?a =最新到domain.tld / latest
以此类推...
有什么想法怎么做?
Apache规则如下:
RewriteRule ^(.*) $1 [L]
RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&q=$3 [L]
答案 0 :(得分:0)
已解决
if sestatus | grep -q disabled; then
yum -y install selinux-policy selinux-policy-targeted policycoreutils-python
fi