News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

ajuda com htaccesss ?

Started by floyde, August 14, 2015, 09:10:04 AM

Previous topic - Next topic

floyde

gostaria de  adicionar a seguinte regra no .htaccess , para tira as paginas de erro da minha hospedagem,
onde que fica o htaccess? ou onde posso criar ? pq nos aquivo da pas smf de inicio nao achei .
grato !

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


para tirar o erro abaixo
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

margarett

Crias um ficheiro chamado ".htaccess" (sem aspas obviamente) na raiz do teu site (normalmente a pasta "public_html" ou "www") e colocas esse conteúdo lá dentro.

Mas porque é que queres um redirect para o erro 500? Isso não te vai tirar o erro! No limite mostra-te uma página "customizada" para o erro, mas ele está lá.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

floyde

entao quando digito, exe :  www.meusite,com/ooooooooooookkdu  ma pagina que nao existe mim da esse erro /

que -e o erro 500
so que eu nao quero que ele apareça , quero que fique iqual a do smf

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Advertisement: