URL redirection and PORT in .htaccess

0

Next,
I have a URL: link
What I wanted to do is, when someone logs in with this url, apache redirect to the following address: link
I already tried several things including looked at other issues here from the community, but I always find that the door is different ...
Is there any way to do this using htaccess?

    
asked by anonymous 05.12.2017 / 17:12

1 answer

1
RewriteEngine On
RewriteBase /

#Se a porta é 80
#E a URL é /fop2 ou /fop2/
#redirecionar para a nova URL
RewriteCond  %{SERVER_PORT} =80
RewriteRule  ^fop2/?$       http://ip_do_servidor:81/mesa_atendimento/login    [NC,QSA,R,L]

#                                 Flags    [NC]  :: ignorar caixa alta/baixa
#                                          [QSA] :: adicionar parâmetros se há na consulta
#                                          [R]   :: redirecionar (não reescrever)
#                                          [L]   :: parar o processamento de outras regras
    
05.12.2017 / 18:48