Redirecting pages with .htaccess php

0

I would like to know if you have as .htaccess, do the following redirect:

Url: link and link

When the user types or sales or admin he redirects to the page:

link

    
asked by anonymous 30.11.2018 / 11:10

1 answer

0

There are several ways to redirect your site's hits.

Learn some of them:

Redirecting the primary domain of the account: RedirectMatch ^ / $ link Redirect "www.dominio.com.br" to "www.dominio.com.br/loja" Redirect 301 /pagina.html link Redirects access to the "page.html" file to " link "

Redirect 301 / link Redirect your account access to the " link "

RedirectMatch 301 (. *) .html $ link $ 1.php If you've changed all of your extension files ".html" to ".php" and have old links with ".html" references, you can prevent the user from accessing a page that no longer exists with that line; It redirects any access to a ".html" by replacing ".html" with ".php".

Options + FollowSymLinks RewriteEngine on RewriteCond% {HTTP_HOST}. RewriteCond% {HTTP_HOST}! ^ Site.com.br RewriteRule (. *) link $ 1 [R = 301, L]

    
30.11.2018 / 13:23