using mod_rewrite with XAMPP and windows 7 - 64 bit?

前端 未结 3 1694
春和景丽
春和景丽 2020-12-03 19:36

i have a simple mod_rewrite rule which allow me to re-direct any requests that are not actual files or directories to the index.php file

    Options +SymLink         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 20:14

    Below are the instructions on how to enable .htaccess mod_rewrite in xampp.

    1. Open and edit C:\xampp\apache\conf\httpd.conf in a text editor

    2. Find the line which contains

      #LoadModule rewrite_module modules/mod_rewrite.so
      

      and (uncomment) change to

      LoadModule rewrite_module modules/mod_rewrite.so
      
    3. Find all occurrences of

      AllowOverride None
      

      and change to

      AllowOverride All
      
    4. Restart xampp

    That’s it you should be good to go.

    Help: http://www.leonardaustin.com/blog/technical/enable-mod_rewrite-in-xampp/

提交回复
热议问题