Install and configure mod_rewrite for Apache 2 on Mac OS X for Zend Framework 2

前端 未结 8 912
不思量自难忘°
不思量自难忘° 2020-12-13 09:16

I getting started with zend framework 2 and they have a prerequisite of an installation and configuration of mod_rewrite for apache. Apache 2.2.22 came pre-installed on Mac

8条回答
  •  时光说笑
    2020-12-13 09:57

    In addition to Rob Allen's response, both line numbers are located around 168 and 169 (to save you some time from scrolling the 500+ lines of text). Also, to explain what each line does exactly:

    LoadModule rewrite_module libexec/apache2/mod_rewrite.so
    

    This overrides the default settings for any .htaccess files used at the document root

    LoadModule php5_module        libexec/apache2/libphp5.so
    

    This allows URL rewrites for permalinks

    Source: link

提交回复
热议问题