Issue with serving different app from subfolder of wordpress installation

I have a wordpress site running at the root of my domain. e.g http://www.example.com as I needed site to run www url I had changed the siteurl in wp-options table to http://www.example.com now when I try to visit non www url it redirects me to www variation. this is all working fine

But now I have created a subfolder ‘app’ there which serves an angular app. Now when I visit http://example.com/app/ then it works.. but when I visit http://www.example.com/app/ it shows me wordpress 404 page. is it not possible to have this setup?

Read More

Server is aws + apache.

Related posts

2 comments

  1. If you’re using an .htaccess file you can add this before the rewrite rule for wordpress index.php

    RewriteCond %{REQUEST_URI} ^/app/.*$
    RewriteRule ^(.*)$ $1 [L]
    

    It checks if the requests start with app/ and pass it without modification.

  2. Please check angular app where to serve, means which port on run and also check your main wordpress site where?

Comments are closed.