📜  htaccess 基目录 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:51.900000             🧑  作者: Mango

代码示例1
# invoke rewrite engine
    RewriteEngine On
    RewriteBase /~new/

# add trailing slash if missing
    rewriteRule ^(([a-z0-9\-]+/)*[a-z0-9\-]+)$ $1/ [NC,R=301,L]