apache rewrite rule

http://10.58.104.19:8008/site/833/3f11d2b44b7d3baa2149f26a30f8c68d/b.js?siteid=332323

将一个静态请求转换成一个动态php请求

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Alias /site /home/mahao01/shifen/site_root/
<Directory "/home/mahao01/shifen/site_root/">
    Options FollowSymLinks -Indexes -MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
 
    RewriteEngine on
    RewriteBase /site/
    RewriteRule ^([0-9]+)/([A-Za-z0-9]{32})/b.js$ /demo.php?module=xxx&action=xxx&controller=xxx&sitestr=$2 [QSA,L]
 
 
    php_flag magic_quotes_gpc off
    php_flag upload_max_filesize 2m
</Directory>

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。