Question

So I have a web app and a promotional website. Promotional website resides in the root of www.domain.com. I would like the web app (cakePHP framework) to be accessible at www.domain.com/app.

Just placing the app folder into the wp directory doesn't work.

What could be wrong? Any help is much appreciated.

Was it helpful?

Solution

You can modify the .htaccess file of your wordpress installation to pass through all requests to your /app/ folder without going through wordpress as follows:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Let all go through to app
RewriteCond %{REQUEST_URI} "/app/"
RewriteRule (.*) $1 [L]

# Normal Wordpress rewrites
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top