-1
I want to have it redirected to my domain if it’s not a. php file or certain folders. php I got it:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ - [L]
RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]
-1
I want to have it redirected to my domain if it’s not a. php file or certain folders. php I got it:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ - [L]
RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]
-1
Done,
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ - [L]
RewriteRule ^(pasta1|pasta2)($|/) - [L]
RewriteRule (.*) https://www.exemplo.com/$1 [R=301,L]
Browser other questions tagged htaccess
You are not signed in. Login or sign up in order to post.
Is this a supplement to the question or is it an answer ? If it is an answer, explain how the problem is being solved and what happened to make it so.
– Isac