I have the following situations on my server:
/->
news->
.htaccess
index.php
post.php
...
And the following rules in my .htaccess:
RewriteRule ^(.*)/admin post.php?slug=$1&admin_mode=true [NC,QSA,L]
RewriteRule ^(.*)$ post.php?slug=$1 [NC,QSA,L]
Now I need my URLs to be the following:
If requested www.mydomain.com/news/ -> it should get the index.php file
If requested www.mydomain.com/friendly-title-of-my-article -> it should get the post.php file with the query string as indicated in my .htaccess.
Currently I get correctly the post.php with the query string, but when I go to www.mydomain.com/news/ , it's requesting the post.php file.
Please help. Thanks