2019-07-06 14:21
浏览 79

Symfony(3.4)app:无法通过.htaccess将请求重定向到/ web目录

I've a website lets say ( on server : /web/website ) ; I ve added a symfony blog app in /web/website/blog/.

I dont manage to access the blog via (404 error)

There is a .htaccess file in /web/website/blog/ directory, and one in /web/website/blog/web directory.

I am used to deploy symfony apps 'alone' on a server, and make the domain point to the web dir of the app, and everything always works fine, but in this configuration, I cant get it to work.

I have tried to use the following .htaccess conf under /web/website/blog/ :

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ web/$1 [QSA,L]

And I did not edit the default one under /web/website/blog/web/

Im not sure what Im doing wrong, so any help would be appreciated !

2条回答 默认 最新

相关推荐 更多相似问题