标签: apache .htaccess xampp
我有简单的.htaccess文件:
RewriteEngine On RewriteRule ^admin(/.*)?$ admin.php [NC,L] RewriteRule !\.(css|txt|js|json|png|jpg|xml|map|eot|svg|ttf|woff|woff2)$ index.php [NC,L]
它在Web服务器上运行良好,但在本地XAMMP上,所有内容都被重定向到index.php。