码迷,mamicode.com
首页 > Web开发 > 详细

apache rewrite rule

时间:2015-05-16 20:13:11      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

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>

 

apache rewrite rule

标签:

原文地址:http://www.cnblogs.com/allenhaozi/p/4508409.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!