I want to configure a Wordpress application with a simple php application. The application directory structure is as follows:
Root directory: / var / www / demoApp /
Wordpress Directory: / var / www / demoApp / wordpress /
Here I want to access the wordpress application using the route http: // BASE_URL / wordpress . But I can not configure the htaccess file. All php pages in the / var / www / demoApp / directory work fine using the url http: // BASE_URL / . While Wordpress files do not load correctly.
Here is my Apache configuration block:
<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/demoApp
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/demoApp>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
What should be the .htaccess file?