apache字体文件跨域、路由去掉index.php


Header set Access-Control-Allow-Origin "*"

 


Options +FollowSymlinks -Multiviews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

你可能感兴趣的:(apache字体文件跨域、路由去掉index.php)