Rewriterule not going to match? The following string, which needs to be matched with Rewritecond
Put/abc?id=123 =/def.php?id=123:
%{query_string} ^id= (. +^/abc$/def.php?sid=%1 [L]
#启用重写后, avoid static resource access errors Rewritecond%{request_filename}!-f rewritecond%{request_uri}!^/css Rewritecond%{ Request_uri}!^/js rewritecond%{request_uri}!^/images rewritecond%{request_uri}!^.* (\.css|\.js|\.gif|\. Png|\.jpg|\.jpeg|\.xml) #解决重写后接不到问号后面的参数 rewritecond%{query_string} ^ (. *) $ #RewriteRule ^ (\w+) \-(\w+ ) \.html index.php?c=$1&a=$2%1 [L,QSA] #把URL中的index. php omitted rewriterule ^/(. *) /index.php?$1 [L,QSA]
Rewritecond%{query_string} ^ (. *^userd-([0-9]+)-boardlist.html$ pyquan.php?action=boardlist&uid=$1 &%1 [L]
http://localhost:8084/userd-1-boardlist.html?page=2
Array (size=3) = ' Boardlist ' (length=9)
= ' 1 ' (length=1)
=' 2 '(length=1)
APACHE REWRITE? Match the spelling of a question mark