I have the following .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 404 /erro404
RewriteRule ^(.*)$ index.php?rota=$1 [L,QSA]
I'm trying to put a condition that when the user enters the page site.com/editor it go to the / editor folder instead of the index. I tried the following unsuccessful way:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 404 /erro404
RewriteRule editor /editor/index.php
RewriteRule ^(.*)$ index.php?rota=$1 [L,QSA]