📜  htaccess 保留文件夹 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:26.203000             🧑  作者: Mango

代码示例1
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f
RewriteRule ^/(.*) /$1 [L]

RewriteEngine On
RewriteCond %{SERVER_PORT} 443 [OR]
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^index.php(.*) http://%{HTTP_HOST}:8000/$1 [P,L]
#RewriteRule (.*) http://%{HTTP_HOST}:8000/$1 [P,L]