Redirect file to URL via .htaccess

2

I'm using UOL Host for my site and I'm having trouble redirecting the home page to a subdomain I've created. Searching how to do this, I found that the way to do this would be:

Redirect 301 /index.php link

My index.php has another name. And the site link is in that style, but they are other words.

I put the .htaccess in the same directory as the index.php, but it does not work when I access the link. Can anyone help me?

    
asked by anonymous 19.04.2017 / 20:01

2 answers

0

Try:

RewriteRule (. *) link [R = 301, L]

Excerpted from:

link

    
19.04.2017 / 20:42
0

See if this works:

redirect 301 http//dominio.com http://subdominio.dominio.com
    
03.12.2017 / 16:13