4
为什么.htaccess重定向在http中起作用但在https中不起作用?
我有一个简单的.htaccess文件,该文件在该网站的http版本上很好用,但是在访问https时却无法使用。为什么? RewriteEngine on #This is so if the file exists then use the file RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ %{REQUEST_FILENAME} [L] #These conditions check if a file or folder exists just for reference #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #if someone adds ".php" to the slug get rid of it …