Im trying to do a redirection from domain/web/something
to sub.domain/web/something
, and only for /web/ but this code is redirecting all website
Options +FollowSymlinks -MultiViews RewriteEngine on # http RewriteCond %{HTTP_HOST} ^(www.)?domain.esweb$ [NC] RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*)$ http://sub.domain.es/web/$1 [R=301,L] # https RewriteCond %{HTTP_HOST} ^(www.)?domain.webes$ [NC] RewriteCond %{SERVER_PORT} =443 RewriteRule ^(.*)$ https://sub.domain.es/web/$1 [R=301,L]
Ive tried the code above expecting to redirect some url group to another but what im getting is full website redirected instead
New contributor
Jota Javier Gonzalez Garcia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.