Apache .htaccess Wordpress Symfony
我有一个symfony1.4项目。使用标准.htaccess:Apache .htaccess Wordpress Symfony,apache,wordpress,.htaccess,symfony1,Apache,Wordpress,.htaccess,Symfony1,我有一个symfony1.4项目。使用标准.htaccess: 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 fi
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文件上写什么才能允许这样的请求:
要通过Wordpress index.php而不是Symfony前端赶上吗
当然,当我键入此url时,404会出现在我的Symfony上:
404 | Not Found | sfError404Exception
Action "blogwordpress/fr" does not exist.
提前感谢在语句中的重写引擎之后添加此项
RewriteCond %{REQUEST_URI} !^/?wordpress
用外行的话说
仅当请求不以wordpress开始时才应用以下规则
RewriteCond %{REQUEST_URI} !^/?wordpress