htaccess redirect 301 URL that does not exist

1

There was an old site and all your URLs have changed.

A URL that was well found on Google was:

Yourdomain.com/datacenters

Now I want to redirect this URL to:

mydomain.com/data-centers

In htaccess I did:

redirect 301 /datacenters /data-centers

But it will not, what am I doing wrong?

    
asked by anonymous 17.01.2018 / 15:12

1 answer

0

Try this way should work.

Redirect 301 /meudominio.com/datacenters.html http://meudominio.com/data-centers.html

Another example: 301 redirect with .htaccess

redirect 301 /diretorio/antigo_arquivo.htm http://www.exemplo.com.br/novo_arquivo.htm

Redirect 301 /pagina-antiga.html http://meudominio.com/folder/

Reference link link

    
17.01.2018 / 15:31