I want to have it redirect to my domain if it is not a .php file or certain folders. The php I got:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ - [L]
RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]
I want to have it redirect to my domain if it is not a .php file or certain folders. The php I got:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ - [L]
RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]
Done,
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ - [L]
RewriteRule ^(pasta1|pasta2)($|/) - [L]
RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]