【发布时间】:2012-04-29 16:08:16
【问题描述】:
我有一个域 mail.domain.com/webaccess
我可以使用以下命令强制执行 https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://mail.domain.com/webaccess/ [R]
我怎样才能删除别名 /webaccess ,这样用户就不必输入长网址,如果用户输入了 www,我怎样才能删除它。
注意:/webaccess 别名实际上指向我的文件系统中的 /opt/mailserver。
谢谢
【问题讨论】:
-
SO 题外话;属于Server Fault 或Webmasters
标签: linux apache mod-rewrite