co-existence of Symfony and wordpress in single webserver -


i have implemented website in symfony2.4, blog in configured , installed in wordpress instance.

my wesite under /var/www/html/website/ , documentroot in httpd.cont set /var/www/html/website/web folder of symfony.

my wordpress installed in /var/www/html/blog - have created soft link of same in symfony's web folder. wordpress site not seem work.

is there else need configure?

my .htaccess file sumfony's web folder looks this:

    enter code here <ifmodule mod_rewrite.c>     rewriteengine on      # determine rewritebase automatically , set environment variable.     # if using apache aliases mass virtual hosting or installed     # project in subdirectory, base path prepended allow proper     # resolution of app.php file , redirect correct uri.     # work in environments without path prefix well, providing safe, one-size     # fits solution. not need in case, can comment     # following 2 lines eliminate overhead. #    rewritecond %{request_uri}::$1 ^(/.+)/(.*)::\2$ #    rewriterule ^(.*) - [e=base:%1]      rewritecond %{http_host} ^mywebsite\.com$     rewriterule ^(.*) http://www.mywebsite.com/$1 [r=301,l]      rewritebase /     rewritecond %{request_filename} !-f     rewritecond %{request_uri} !/blog     rewriterule ^(.*)$ app.php [qsa,l]  # redirect uri without front controller prevent duplicate content     # (with , without `/app.php`). redirect on initial     # rewrite apache , not on subsequent cycles. otherwise     # endless redirect loop (request -> rewrite front controller ->     # redirect -> request -> ...).     # in case "too many redirects" error or redirected     # start page because apache not expose redirect_status     # environment variable, have 2 choices:     # - disable feature commenting following 2 lines or     # - use apache >= 2.3.9 , replace l flags end flags , remove     #   following rewritecond (best solution)     #rewritecond %{env:redirect_status} ^$     #rewriterule ^app\.php(/(.*)|$) %{env:base}/$2 [r=301,l]      # if requested filename exists, serve it.     # want let apache serve files , not directories.     #rewritecond %{request_filename} -f     #rewriterule .? - [l]      # rewrite other queries front controller.     #rewriterule .? %{env:base}/app.php [l] </ifmodule>  <ifmodule !mod_rewrite.c>     <ifmodule mod_alias.c>         # when mod_rewrite not available, instruct temporary redirect of         # start page front controller explicitly website         # , generated links can still used.         redirectmatch 302 ^/$ /app.php/         # redirecttemp cannot used instead     </ifmodule> </ifmodule> 

i've managed make 2 cohabit .htaccess

<virtualhost *:80>   servername yourdomain.com   #path symfony   documentroot "path/web"   adddefaultcharset utf-8   directoryindex app.php    <directory "/path/web">     rewriteengine on     options +multiviews     <ifversion >= 2.3>     require granted     </ifversion>     allowoverride     allow   </directory>    #path blog   alias /blog "/otherpath/blog"   <directory /otherpath/blog>     directoryindex index.php     rewriteengine on     options +multiviews     <ifversion >= 2.3>     require granted     </ifversion>     allowoverride     allow   </directory> </virtualhost> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -