php - How to write .htaccess for my website directory


how to write .htaccess file for my website directory.

i dont get any errors when i run it locally on my PC.

but when i open it live on browser, it shows an error.

My website directory :-

please help.

This is aa glimpse of the error.log file




I understand that in your local Apache installation the .htaccess works fine while when you upload the files to another server it stops working, is that correct? In this case you might want to check the remote server's error_log, in which you can find the detailed error, it might be you are using some directives you are not allowed to (see "AllowOverride" in apache docs)

People are also looking for solutions to the problem: php - sum of table's column return null (codeigniter) using left join


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.