I have a WordPress site hosted on AWS and I am having a hard time to configure mod_rewrite
to work correctly.
Folder structure
/root
|_ staging/
|_ live/
The .htaccess
is the WordPress default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Main Problem
I can access /staging/index.php/api
which I used to access it without subdirectories like this ---.com/api
.
When I try /staging/api
it shows File not found
.
I tried to change the .htaccess
to different thing but none of them was successful.
There are no .htaccess
file in the root directory.
Some help would be appreciated =)
Thanks in advance.