enter image description here

I have a website that uses Symfony3 and am trying to integrate a wordpress blog under www.website.com/blog.

So what I’ve done so far is create a blog folder, under the Symfony web folder, which contains the wordpress files.

I’ve then added a rewrite rule, in the web/ directory’s .htaccess file so that when we are under blog/, Symfony’s url rewriting won’t do anything :

# Passing through the Url rewriting for all blog/ urls
RewriteRule ^blog/(.*)$ blog/$1 [PT]

So far it’s good. I can access the admin section and everything but the problem is that when I try to access www.website.com/blog or even www.website.com/blog/index.php I only get the list of files in the folder and not the actual front page.

And here is the .htaccess file from blog/ folder that was created when I launched the wordpress installation script:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /mouchegmouradian/web/blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /mouchegmouradian/web/blog/index.php [L]
</IfModule>
# END WordPress

Any ideas why ?

Read more here: Integrating wordpress to symfony 3 based website


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: