i have website code @ /library/webserver/documents/edu
, i'm using following .htaccess
file:
rewriteengine on rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^(.*) /index.html [nc,l]
which i've put under /library/webserver/documents/edu
, apache server seems ignoring file , whatever changes i'm doing here not taking effect. need additional changes ?
by default apache has .htaccess disabled, have enable it.
got , edit /etc/apache2/httpd.conf
you find section looks this:
<directory /> options followsymlinks allowoverride none order deny,allow deny </directory>
you have change allowoverride none
allowoverride all
, find section right after should start with: <directory "/library/webserver/documents">
, you'll have change same thing there allowoverride all