.htaccess更好的重写解决方案?为什么apache / nginx需要很长时间的响应

时间:2012-10-12 04:18:57

标签: apache .htaccess mod-rewrite

在我将以下重写代码添加到我的网站后,我注意到服务器请求需要很长时间,(我没有任何页面html错误,js错误或我的网站页面中的任何内容)

但是我注意到在Firefox中“加载”继续显示页面仍在请求,并且需要很长时间(1分钟)才能停止它。

我认为这个重写代码正在创建这个延迟...关于如何改进这个的任何想法?

# BEGIN Rewrite
<IfModule mod_rewrite.c>
RewriteEngine on 
RewriteBase /
RewriteCond %{HTTP_HOST} ^career.com
RewriteRule (.*) http://www.career.com/$1 [R=301,L]
RewriteRule ^files/([^/]+)/seeker/cover/([^/]+)$ uploads/seeker/cover/$2  [QSA,L]
RewriteRule ^files/([^/]+)/seeker/cv/([^/]+)$ uploads/seeker/cv/$2  [QSA,L]
RewriteRule ^files/([^/]+)/account/([^/]+)$ uploads/account/$2  [QSA,L]
RewriteRule ^files/([^/]+)/employer/logo/([^/]+)$ uploads/employer/logo/$2  [QSA,L]
RewriteRule ^jobs/([^/]+)/?(.*)$ jobs.php?job_id=$1  [QSA,L]
RewriteRule ^industry/([^/]+)/?(.*)$ results.php?formID=industryBrowse&industry_id=$1  [QSA,L]
RewriteRule ^company/([^/]+)/?(.*)$ results.php?formID=employerBrowse&employer_id=$1 [QSA,L]
RewriteRule ^profile/employer/([^/]+)/?(.*)$ company.php?employer_id=$1 [QSA,L]
</IfModule>
# END Rewrite

0 个答案:

没有答案