apache,R,P,url重写,伪静态,反向代理

需求:

1,浏览器地址栏中URL不变

2,伪静态重写生效

=====================

<VirtualHost *>

ServerName xinwen.888.com.cn

ServerAlias www.xinwen.888.com.cn

DocumentRoot /data/xinwen

CustomLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache2/logs/xinwen_access%Y%m%d.log" combined env=!NOFILES

ErrorDocument 404 /404.html

<Directory "/data/xinwen/">

Options FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

Deny from 111.111.0.

Deny from 111.111.4.

</Directory>

<IfModule mod_weblogic.c>

WebLogicHost 127.0.0.1

WebLogicPort 8080

MatchExpression *.jsp

MatchExpression */rlr*

MatchExpression */dwr/*

WLTempDir /home/userputong/wltemp

</IfModule>

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule /xinwen_(.*).html$ /rlrxinwenlist?classid=$1 [R,P]

RewriteRule /showxinwen(.*).html /rlrxinwendetail?id=$1 [R,P]

</IfModule>

</VirtualHost>