htaccess will not change your URL, it will remain the same.
It is the opposite of what you wrote, the user will write:
meusite.com.br/criacao-sites
htaccess is a read/orientation file.
Your URL will remain the same and htaccess will interpret it according to the rules and guide access to a particular directory/resource.
Use Rewriterule to write a specific rule for the URL:
RewriteEngine On
RewriteBase /
RewriteRule ^criacao-sites criacao_de_sites_e_lojas_virtuais.php [NC,QSA,L]
The example you quoted in the comments below:
http://visoart.com/portal/php/visoart_empresa_web_design_design_grafico_porto_alegre.php
Would look like this:
#ativamos a reescrita
RewriteEngine On
RewriteBase /
#quando o utilizador escrever no browser .../portoalegre, o htaccess executa um redireccionamento interno para o arquivo "visoart_empresa_web_design_design_grafico_porto_alegre.php" dentro do directório "/portal/php/".
RewriteRule ^portoalegre portal/php/visoart_empresa_web_design_design_grafico_porto_alegre.php [NC,QSA,L]
With the above change, just write the following URL in the browser:
http://visoart.com/portoalegre
Does that help you? http://blog.thiagobelem.net/ learning Urlsfriendly/
– RodrigoBorth
Rodrigo, I tried to use Thiago’s methods but I can’t fully apply them. Look at the link: visoart.com ... I need to beautify these links. Have any idea?
– Marcos Vinicius
There must be 3 or 4 answers to this on the site already (I don’t know if any suits you, but there are good examples).
– Bacco
@marcosvinicius the best way I know it is the Thiago Belem, it is the simplest and efficient, what is the problem that occurs to you? you read everything he wrote?
– RodrigoBorth