I google on the net and found two approaches to redirect incoming requests to apache in Ubuntu OS: 1) using httpd.conf and 2) using .htaccess.
I am confused. What are the differences between them?
Please share if you know how.
Thank you!
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.
The
.htaccess-file is meant to be used on shared servers where you don’t have access to the primary Apache config files. It is generally a better idea to usehttpd.confor your site config rather than.htaccessif you can as this has a lower processing overhead (as far as I know, the.htaccess-file is parsed on each request), but both ways work fine.