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 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, generally speaking .htaccess is just meant for per-directory settings and the httpd.conf for server wide settings. Also accessing the
.htaccessfile adds some small overhead but that’s probably not your concern.And yes, you can
use regular expressions in the httpd.conf