Is there a way to install WordPress on the main domain and PHP script on a sub directory?

Keywords: WordPress - AWS - How to - Services (Apache, MariaDB, MySQL…)

Description:
I have installed WordPress from bitnami on AWS. But can I install a PHP script on a subdirectory.
For example:
example.com should be the Wordpress
example.com/app should be the PHP script.

Hello @varunvarathv,

Please take a look at our documentation:
https://docs.bitnami.com/aws/apps/wordpress/administration/create-custom-application-php/

Don’t hesitate to ask if you have any doubt

Regards

Sorry, I don’t get it. The documentation shows to install the custom PHP application but I’m asking to install the application on the subdirectory of the WordPress.

Hello @varunvarathv,

The documentation explains the recommended steps to create a custom PHP application. It uses virtualhost to server it fo Approach A.

For Approach B, you can see the prefix configuration:

  Alias /myapp/ "/opt/bitnami/apps/myapp/htdocs/"
  Alias /myapp "/opt/bitnami/apps/myapp/htdocs/"

With that, you could serve your app in example.com/myapp.

I hope it helps

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.