I have pushed my .htaccess files to the production severs, but they don’t work. Would a restart be the next step, or should I check something else.
Share
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.
A restart is not required for changes to .htaccess. Something else is wrong.
Make sure your .htaccess includes the statement
which is required even if it’s also present in httpd.conf. Also check that .htaccess is readable by the httpd process.
Check the error_log – it will tell you of any errors in .htaccess if it’s being used. Putting an intentional syntax error in .htaccess is a good check to make sure the file is being used — you should get a 500 error on any page in the same directory.
Lastly, you can enable a rewrite log using commands like the following in your httpd.conf:
The log file thus generated will give you the gory detail of which rewrite rules matched and how they were handled.