apache基于ssl配置weblogic(二)

6. 使用mod_rewrite来重写URL,

    将rewrite_module modules/mod_rewrite.so放开

    在http.conf中新写入:

    <IfModule mod_rewrite.c>

RewriteEngine on

RewriteRule ^/test1/ http://localhost/test-web/test

    </IfModule>

    重要的是RewriteEngine on

    下面是url做的映射,支持正则表达式

    这样凡是访问test1的请求都直接重定向到http://localhost/test-web/test

猜你喜欢

转载自chengjisihan.iteye.com/blog/1416038