.htaccess config with symbolic links and index files not working as expected

后端 未结 2 2029
梦如初夏
梦如初夏 2021-02-19 06:57

Like a lot of web developers, I like to use .htaccess to direct all traffic to a domain through a single point of entry when the request isn\'t for a file that exists in the pub

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-19 07:32

    The -l flag references symbolic links

    RewriteEngine On
    # enable symbolic links
    Options +FollowSymLinks
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^(.+) index.php [L]
    

提交回复
热议问题