使用301重定向的httpd.conf重定向、conf、httpd

由网友(沽酒杯空影)分享简介:我读的地方,使用的.htaccess的301重定向,不建议和一个更好的做法将是使用的httpd.conf 是真的吗?为什么?我们可以使用正则表达式在httpd.conf - 相同的,因为我们做的.htaccess? 解决方案 好了,一般来说的.htaccess只​​是意味着每个目录设置和httpd.conf中服务器...

我读的地方,使用的.htaccess的301重定向,不建议和一个更好的做法将是使用的httpd.conf

是真的吗?为什么? 我们可以使用正则表达式在httpd.conf - 相同的,因为我们做的.htaccess? 解决方案

好了,一般来说的.htaccess只​​是意味着每个目录设置和httpd.conf中服务器级设置。同时访问的.htaccess 文件增加了一些小的开销,但是这可能不是你的问题。

是的,你可以使用常规的前pressions在httpd.conf

I read somewhere that using .htaccess for 301 redirect is not recommended and that a better practice will be to use httpd.conf

is that true ? why ? can we use regexp in httpd.conf - the same as we do with .htaccess ?

解决方案 新站为什么做301重定向,301重定向最全设置教程

Well, generally speaking .htaccess is just meant for per-directory settings and the httpd.conf for server wide settings. Also accessing the .htaccess file adds some small overhead but that's probably not your concern.

And yes, you can use regular expressions in the httpd.conf

阅读全文

相关推荐

最新文章