我想用的.htaccess或任何其他方法,以便當如何使用的.htaccess從/登錄進行重定向到/login/login.html
用戶類型它將以
https://websitename/login/login.html
我使用的是Debian的9.x服務器上的Apache2和使用mod_rewrite和重寫規則試圖重定向。都沒有工作。
這是我目前有:
RewriteOptions inherit
RewriteEngine on
RewriteRule ^login$ "https\:\/\/websitename\.com\/login\/login\.html" [R=301,L]
任何幫助,將不勝感激。感謝提前:)
非常感謝! –