我正在研究的这个项目是在Symfony中完全开发的。源代码位于根intranet
文件夹中名为www
的目录中。
在其中( www / intranet / )我创建了一个名为financial
的新目录,其中包含不同的源代码,我希望Apache不要在其中执行任何类型的重定向。但是当我尝试访问财务中的任何PHP文件( www / intranet / financial / )时,它会将我发送到一个空白页面,其中没有任何源代码(当我按下CTRL + U时检查)。
我希望Symfony继续正常工作,但直接访问此文件夹financial
,不进行任何重写。
这是我在 .htaccess 文件中的内容,该文件位于www/intranet/web/
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
我真的不知道从哪里开始解决这个问题。页面是空白的,我不确定问题是在 .htaccess 还是在 httpd.conf 中。
请注意,我的部分不是用Symfony编写的。我不关心我需要使用的URL,我只是想不被重定向或拒绝
你们任何人都可以帮我解决这个问题吗?