相关疑难解决方法(0)

.htaccess mod_rewrite性能

我在SOF上搜索了很多关于.htaccess和mod_rewrite的内容,我希望表现明智哪一个更快:

RewriteRule ^([a-z0-9]+)/?$ index.php?id=$1 [NC,L]
RewriteRule ^(.*)/?$ index.php?id=$1 [NC,L]
RewriteRule ^([^/]*)/?$ index.php?id=$1 [NC,L]
Run Code Online (Sandbox Code Playgroud)

因为第一个只接受字母和数字,它是否会让它更快执行?

performance .htaccess mod-rewrite

15
推荐指数
2
解决办法
2101
查看次数

标签 统计

.htaccess ×1

mod-rewrite ×1

performance ×1