I have two wordpress site one in main directory (public_html) and another one is in subdirectory staging. I already configure all the settings in subdirectory site with http://example.com/staging but when I load http://example.com/staging it redirect to Page Not Found in main site and not in staging site. I set the .htaccess file in staging subdirectory like this.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /staging/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /staging/index.php [L]
</IfModule>
# END WordPress
And this in on the main site in main directory.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Anybody can help me with this issue and my staging site can load properly ? Thank you before.