Redirect site with .htaccess

0

Good afternoon!

I want to redirect my site and I'm not finding the solution.

I want it when the guy accesses the ip for example: link it directs to link

Is it possible with .htaccess?

Remembering that it is only internal.

Thank you

    
asked by anonymous 20.05.2015 / 21:33

1 answer

0

You can try something like this:

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} 127\.0\.0\.1
    RewriteRule $ /outrapagina.html [R=302,L]
    
24.05.2015 / 02:59