Laravel -- windows apache .htaccess https 路由重写

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{SERVER_PORT} !^443
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteRule ^(.*)/$ /public/$1 [L,R=301]
  RewriteRule ^ index.php [L]

</IfModule>

猜你喜欢

转载自www.cnblogs.com/gjh99/p/10793735.html