I urgently need a simple and practical way to perform redirect via .htaccess preferably to an alternate domain of a site. This practice is to adopt SEO measures, since there are various media already indexed by Google and other search engines.
For example, I have the main site oregionalsul.com.br that is being moved to oregionalsul.com ; the redirection in a simple way I have already been able to do, what happens is that the media loading is done in a subdomain and likewise I need to forward all requests to the .com
domain.
The relative path of a media is as follows:
https://midia.oregionalsul.com.br/2017/10/segunda_etapa_da_transferencia_de_carga_da_ponte_hercilio_luz_20171010_1160690858-1132x670.jpg
I mean that everything that comes after midia.oregionalsul.com.br
is redirected to the same address only in the .com
domain.
Content is already replicated in both domains, just add or remove .com.br
.
See example:
I tried with this topic: URLS redirect , unsuccessfully.