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 >
|