Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Tutorial] .htaccess Removendo .html E .php Das Paginas

Featured Replies

Postado

Ola pessoal vou passar para vocês como mudar o index.html ou index.php para somente home ou inicio de momento isso não importa.

tem varias maneiras de se fazer eu acho esta a mais fácil de se fazer

vamos direto ao ponto

temos o site www.meusite.com.br/index.html

queremos isto www.meusite.com.br/home

então na raiz do seu site no caso normalmente public_html

crie o arquivo

.htaccess

vamos editar o mesmo


<IfModule mod_rewrite.c>

	    RewriteEngine On

	    RewriteRule ^home/?$ /index.html [NC,L]

</IfModule>

pronto salve e acesse seu site www.meusite.com.br/home se funcionar ok basta fazer para o restante do site agora o index.php

<IfModule mod_rewrite.c>

	    RewriteEngine On

	    RewriteRule ^home/?$ /index.php [NC,L]

        RewriteRule ^sobre/?$ /sobre.php [NC,L]

        RewriteRule ^planos/?$ /planos.php [NC,L]

        RewriteRule ^contato/?$ /contato.php [NC,L]

</IfModule>

depois basta mudar em suas paginas o link

<a href="home" >Home</a>

Obs: o link .html ou .php continua funcionando normalmente


Postado

Algo mais fácil de se fazer:

RewriteEngine On

RewriteRule ^(.*)$ $1.php

Assim, toda url acessada se transformaria em .php, por exemplo www.teste.com/site, chamaria a pagina site.php.


Postado

òtimo tutorial,isso ajuda os iniciantes


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.