标签: .htaccess
我想在url http://example.com/folder1/
但是此网址使用http主机
并执行url是
http://example.com/?test=folder1
答案 0 :(得分:0)
将此代码放入DOCUMENT_ROOT/.htaccess文件中:
DOCUMENT_ROOT/.htaccess
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/?$ /?test=$1 [L,QSA]