I'm having trouble changing the URL of the site I'm putting together, I've searched a lot of places and everyone is talking about using the .htaccess file. So far so good but I do the same as I researched and does not work.
Follow the files I tried to change the url.
RewriteEngine On
RewriteBase /
RewriteRule ^home index.php [NC,QSA,L]
RewriteRule ^contato contato.php [NC,QSA,L]
#############################################
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^home(.*)$ index.php
RewriteRule ^contato(.*)$ contato.php
#############################################
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^home/?$ /index.php [NC,L]
RewriteRule ^contato/?$ /contato.php [NC,L]
</IfModule>
I tried with all these and it will not, the pages stay the same way www.site.com.br/index.php www.site.com.br/contato.php
This is either on localhost or on the web server.