Use .htaccess file on an apache localhost server

前端 未结 4 1782
南旧
南旧 2020-12-28 21:16

Alright, I got an Apache localhost server up and running with PHP and MySql. Now I want to be able to use a .htaccess file as well to use RewriteRule

4条回答
  •  鱼传尺愫
    2020-12-28 21:31

    .htaccess is a configuration file that should be stored where your page is. In short, it should be in c:\dev\www in Your case, but You should read this too. BTW don't forget to turn on mod_rewrite by deleting a hash from the line where it resides

    LoadModule rewrite_module modules/mod_rewrite.so
    

    and enable .htaccess by changing

    AllowOverride None
    

    to

    AllowOverride All
    

提交回复
热议问题