Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 .htaccess将网页 URL http://www.xyz.com/in/index.php?mpid=page1更改为http://www.xyz.com/in/page1 。
并且还想用用户名和密码保护我的文件夹。
AuthType Basic AuthName "Protected Area" #path to htpaswd AuthUserFile /path/to/.htpasswd Require valid-user RewriteEngine on RewriteCond %{REQUEST_URI} !^in RewriteRule /in/(.+) in/index.php?mpid=$1