Score:0

Apache Rewrite URL not working

br flag

The existing configuration of the server is as below for redirect

host: animal.ca

<VirtualHost *:80> ServerName animal.ca:80

    RewriteEngine On
    LogLevel alert rewrite:trace6
    RewriteCond %{HTTP_HOST} ^animal\.ca\connectee$ [NC]
    RewriteRule ^(.*)$ https://www.animal.ca/fr_ca/connect.html [R=301,L,QSA]
######################################################################################## # host:animal.ca ServerName animal.ca:80
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^animal\.ca$ [NC]
    RewriteRule ^(.*)$ https://www.animal.ca [R=301,L,QSA]

Redirection of URL is not working as expected and I suspect that there should be change in ServerName for both the Virtual Hosts.

Need some advice on the same to make redirection work

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.