如果我在localhost中有链接
localhost/github/atol-universitas/backend/admin.php
如何为此链接编写htaccess?
localhost/github/atol-universitas/admin
答案 0 :(得分:0)
将此规则放在/github/atol-universitas/.htaccess
:
RewriteEngine On
RewriteBase /github/atol-universitas/
RewriteRule ^admin/?$ backend/admin.php [L,NC]