杨叔叔 发表于 2018-11-28 14:07:16

apache rewrite 域名跳转


[*]
[*]    DocumentRoot /home/www/ROOT
[*]    ServerName www.xxx.com
[*]    JKMountFile conf/urimap_dongcom.properties
[*]    JkLogFile logs/mod_jk_dongcom.log
[*]    JkLogLevel error
[*]    Options Indexes FollowSymLinks
[*]    RewriteEngine On
[*]    RewriteRule ^/bbs/content-(+)\.html$ /bbs/content.jsp?id=$1
[*]    RewriteRule ^/community/bbs\.html$ /community/getallcomlist.action
[*]    RewriteRule ^/community/list-(+)\.html$ /community/community.action?id=$1
[*]    RewriteRule ^/community/content-(+)-(+)\.html$ /community/getreplybytheme.action?comId=$1&themeId=$2
[*]
[*]
[*]
[*]
[*]    DocumentRoot /home/www/ROOT
[*]    ServerName www.xxx.com.cn
[*]    JKMountFile conf/urimap_dongcom.properties
[*]    JkLogFile logs/mod_jk_dongcom.log
[*]    JkLogLevel error
[*]    Options Indexes FollowSymLinks
[*]    RewriteEngine On
[*]    RewriteRule ^/bbs/content-(+)\.html$ /bbs/content.jsp?id=$1
[*]    RewriteRule ^/community/bbs\.html$ /community/getallcomlist.action
[*]    RewriteRule ^/community/list-(+)\.html$ /community/community.action?id=$1
[*]    RewriteRule ^/community/content-(+)-(+)\.html$ /community/getreplybytheme.action?comId=$1&themeId=$2
[*]    RewriteRule ^/(.*) http://www.xxx.com/$1
[*]#从一个域名跳转到另外域名
[*]
[*]
[*]
[*]    DocumentRoot /home/www/ROOT
[*]    ServerName t.xx.com
[*]    JKMountFile conf/urimap_dongcom.properties
[*]    JkLogFile logs/mod_jk_tdongcom.log
[*]    JkLogLevel error
[*]    Options Indexes FollowSymLinks
[*]
[*]




页: [1]
查看完整版本: apache rewrite 域名跳转