1

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

Rishabh Anand
  • 167
  • 3
  • 12

1 Answers1

2

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)

Johnny
  • 1,770
  • 12
  • 16
  • Yes you don't have mod rewrite loaded in your apache2, install it and restart your apache2 daemon then if the error persists check again error_log for a new different message and post it – Johnny Oct 17 '16 at 03:34