mamp - Searching for .htaccess on Apple Mac -


i know question has been asked many times, , have looked through many of forum answers but: after using terminal retrieve hidden documents still cannot find .htaccess file. have used text wrangler , when went open , typed name in, there no .htaccess. therefore, missing trick? need create one? have found section change in apache>http.conf. not want php file found if type in url, instead want users access via login page. appreciated.

# # allowoverride controls directives may placed in .htaccess files. # can "all", "none", or combination of keywords: #   options fileinfo authconfig limit # allowoverride  # # controls can stuff server. # order allow,deny allow  </directory>  # # directoryindex: sets file apache serve if directory # requested. # <ifmodule dir_module> directoryindex index.html index.php  <ifmodule perl_module>     directoryindex index.pl </ifmodule>  <ifmodule wsgi_module>  directoryindex index.wsgi index.py </ifmodule>  </ifmodule>  #   # accessfilename: name of file in each directory # additional configuration directives.  see allowoverride  # directive. #     accessfilename .htaccess      #     # following lines prevent .htaccess , .htpasswd files being       # viewed web clients.       # <filesmatch "^\.ht"> order allow,deny deny satisfy </filesmatch>  <files ~ "^\.ds_store"> order allow,deny deny </files>    <files login.php> order allow,deny allow </files> 


Comments

  1. Nice articel, This article help me very well. Thank you. Also please check my article on my site Know All About Htaccess Tutorial. In link article we will learn about Where is my htaccess file.

    ReplyDelete

Post a Comment

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -