Postado Qua 4 Set - 17:17
Quer tirar as extenções .php dos seus arquivos?É super simples siga este tutorial:
# Vá na pasta onde está o seu CMS e abra/ou crie o arquivo ".htaccess"
# Após abrir/ou criar coloque isso:
Após colar, feche e salve-o.
Agora este passo só será necessário se você não tiver o mod_rewrite ativado:
1. No arquivo Conf/httpd.conf, procure pela linha:
2. #LoadModule rewrite_module modules/mod_rewrite.so
3. Depois tire o "#" da linha
4. Procure também pela linha:
5. AllowOverride None
6. Mude para AllowOverride All.
# Vá na pasta onde está o seu CMS e abra/ou crie o arquivo ".htaccess"
# Após abrir/ou criar coloque isso:
- Código:
RewriteEngine On
# Esta página é essencial para o funcionamento
das URLs sem o .php (mas só irá funcionar caso o mod_rewrite esteja
ativado)
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond
%{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule
^groups/(.*)/id/discussions/(.*)/id/page/(.*)
./viewthread.php?thread=$2&page=$3
RewriteRule
^groups/(.*)/id/discussions/(.*)/id ./viewthread.php?thread=$2
RewriteRule
^groups/(.*)/id/discussions ./group_forum.php?id=$1
RewriteRule
^groups/(.*)/id/BadgeUpdated
./group_profile.php?id=$1&x=BadgeUpdated
RewriteRule
^groups/(.*)/id ./group_profile.php?id=$1
RewriteRule ^groups/(.*)
./group_profile.php?name=$1
RewriteRule ^credits/habboclub/tryout
./tryout.php
RewriteRule ^credits/habboclub ./club.php
RewriteRule
^credits/pixels ./pixels.php
RewriteRule ^credits/request
./habblet/ajax_requestcredits.php
RewriteRule ^credits/gamble
./gamble.php
RewriteRule ^credits/more ./more.php
RewriteRule
^credits/history ./history.php
RewriteRule ^credits/furniture_news
./furniture_news.php
RewriteRule ^credits/shop_badge ./shop_badge.php
RewriteRule
^credits/shop_furni ./shop_furni.php
RewriteRule
^credits/collectables ./collectables.php
RewriteRule
^articles/archive$ ./news.php?archive=true [QSA]
RewriteRule
^articles/archive?pageNumber=(.*)$
./news.php?archive=true&pageNumber=$1
RewriteRule
^articles/category/(.*)$ ./news.php?category=$1
RewriteRule
^articles/rss.xml$ ./xml/rss.php
RewriteRule
^articles/(.*)-(.*)/in/category/(.*)$ ./news.php?id=$1&category=$3
RewriteRule
^articles/(.*)-(.*)/in/archive$ ./news.php?id=$1&archive=true
RewriteRule
^articles/(.*)-(.*)$ ./news.php?id=$1
RewriteRule ^articles
./news.php
RewriteRule ^account/submit ./habblet/submit.php
RewriteRule
^account/reauthenticate ./reauthenticate.php
RewriteRule
^account/password/forgot ./forgot.php
RewriteRule ^account/logout_ok
./logout.php
RewriteRule ^tag/search?tag=(.*)$ ./tags.php?tag=$1
[QSA]
RewriteRule ^tag/(.*)$ ./tags.php?tag=$1 [QSA]
RewriteRule
^tag$ ./tags.php [QSA]
RewriteRule ^home/(.*)/edit$
./user_profile.php?do=edit&name=$1
RewriteRule ^home/(.*)/id$
./user_profile.php?id=$1
RewriteRule ^home/(.*)$
./user_profile.php?name=$1
RewriteRule ^add/id/(.*)$
./myhabbo/friends_add.php?id=$1
RewriteRule ^help/(.*)$
./help.php?id=$1
RewriteRule ^help$ ./help.php
RewriteRule
^profile/friendsmanagement ./profile.php?tab=8
RewriteRule
^profile/securitysettings ./profile.php?tab=9
RewriteRule
^client_popup/(.*)$ ./clientutils.php?key=$1
RewriteRule
^client_(.*)$ ./clientutils.php?key=$1 [QSA]
RewriteRule
^captcha.jpg$ ./captcha/captcha.php
RewriteRule ^papers/(.*)$
./paper.php?page=$1
RewriteRule
^habbo-imaging/avatar/(.*),(.*),(.*).gif$ ./cache/avatars/$1,$2,$3.png
RewriteRule
^habbo-imaging/badge-fill/(.*).gif$ ./cache/badges/$1.gif
RewriteRule
^iot/go$ ./go.php
RewriteRule ^community/staff ./staff.php
RewriteRule
^community/competitions ./competitions.php
RewriteRule
^community/applications ./applications.php
RewriteRule
^register/welcome ./welcome.php
RewriteRule ^register/p/(.*)
./register.php?p=$1
RewriteRule ^register/cancel
./register.php?do=cancel
RewriteRule ^register/back
./register.php?do=back
RewriteRule ^register_submit
./habblet/register_submit.php
RewriteRule ^register_messages
./habblet/register_messages.php
RewriteRule
^discussions/(.*)/id/page/(.*) ./viewthread.php?thread=$1&page=$2
RewriteRule
^discussions/(.*)/id ./viewthread.php?thread=$1
RewriteRule
^discussions ./forum.php
RewriteRule ^(.*)/(.*)/habblet/quickmenu.php
./habblet/quickmenu.php
RewriteRule ^(web-gallery) - [L]
Após colar, feche e salve-o.
Agora este passo só será necessário se você não tiver o mod_rewrite ativado:
1. No arquivo Conf/httpd.conf, procure pela linha:
2. #LoadModule rewrite_module modules/mod_rewrite.so
3. Depois tire o "#" da linha
4. Procure também pela linha:
5. AllowOverride None
6. Mude para AllowOverride All.