[英]htaccess rewriteRule for url folder
如果我的本地主機中有鏈接
localhost/github/atol-universitas/backend/admin.php
如何為此鏈接編寫htaccess?
localhost/github/atol-universitas/admin
將此規則放在/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.