为什么80%的码农都做不了架构师?>>>
官方的.htaccess文件是这样的,但是我用这个访问,不加index.php就会报错:No input file specified.
后面网上百度了一下,可以用的写法,这下子,就可以访问了,很舒服
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
#/$1 [QSA,PT,L]
</IfModule>
301重定向https
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]