Jump to content

Recommended Posts

Posted

Boas, tenho uma questão, é mais a titulo de curiosidade. Tenho visto alguns sites que têm uma coisita sem uso mas engraçada.

Por exemplo, vejam o site www.uzo.pt, reparem na barra de endereço "http://www.uzo.pt/pt/pagina.uzo", ".uzo", uma extensão engraçada.

Alguém me sabe explicar como se faz isso?  ?

Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico***

Posted

Tens de configurar isso a nível de servidor...

Por exemplo, configurar um servidor Apache para processar ficheiros com a extensão .naz se a linguagem for PHP, basta adicionar a seguinte linha ao ficheiro httpd.conf:

AddType application/x-httpd-php .naz
Posted

Isto também pode ser feito via .htaccess:

<Files *.fvox>
ForceType application/x-httpd-php
</Files>

No caso abaixo, acessando o arquivo "index" sem extensão, o apache irá interpretar como um script php, devido ao mime type.

<Files index>
ForceType application/x-httpd-php
</Files>

😉

"Strength of the world, the one true beholder...Ice in my veins, for those who've died."

Posted

Ya, esqueci-me do .htaccess 🙂 É capaz de ser mais fácil em hosting partilhado lol...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.