[英]htaccess rewriteRule for url folder
If I have link in my localhost 如果我的本地主机中有链接
localhost/github/atol-universitas/backend/admin.php
how to write htaccess for this link? 如何为此链接编写htaccess?
localhost/github/atol-universitas/admin
Place this rule in /github/atol-universitas/.htaccess
: 将此规则放在
/github/atol-universitas/.htaccess
:
RewriteEngine On
RewriteBase /github/atol-universitas/
RewriteRule ^admin/?$ backend/admin.php [L,NC]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.