0
I have the following file . htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 404 /erro404
RewriteRule ^(.*)$ index.php?rota=$1 [L,QSA]
I am trying to put a condition that when the user enters the site.com/editor page he goes to the /editor folder instead of the index. I tried it like this without success:
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]
Gives error or not found?
– Lucas
No, he carries the index.
– Pedro Soares