我现在在我的网站url上使用mod_rewrite
。几乎完成了。在做这个之前,我的网站很快。现在加载需要2 - 3秒,首先出现一个空白的加载页面。
使用mod_rewrite时,页面加载通常需要更多时间吗?
链接没有Mod重写http://www.wapinside.com/Songs/webindex.php
链接Mod重写http://www.wapinside.com/Songs/webindex2.php
这是我的.htaccess
:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^w/([^*]+).html$ webindex2.php?dir=$1 [L]
RewriteRule ^web/([0-9]+)/([^*]+).html$ webindex2.php?page=$1&dir=$2 [L]
w/
表示文件夹,web/
表示文件夹页面。
mod_rewrite
"在mod_rewrite中使用高跟踪日志级别将大大降低Apache HTTP服务器的速度!"
你可能正在使用它。从文档来看,这似乎是mod_rewrite降低Apache速度的唯一方法。