Use .htaccess file on an apache localhost server

前端 未结 4 1778
南旧
南旧 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:43

    Try This.

    
    RewriteEngine On
    RewriteBase /projectfolder/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /projectfolder/index.php [L]
    
    

提交回复
热议问题