.htaccess não funciona ao mudar de servidor.
Oi pessoal, já olhei os tópicos que tem aqui sobre o assunto e nenhum me ajudou a resolver meu problema !
Sou nova em uma empresa e resolveram trocar a hospedagem do site (no momento a hospedagem é local), temos um servidor com ubuntu server.
Ao passar todo o conteúdo para a nova hospedagem volta o seguinte erro: ERRO INTERNO NO SERVIDOR (500).
Estou totalmente sem saber aonde ir, já alterei as configurações recomendadas que achei pela internet, testei no xampp e deu a mesma coisa! O site funciona normalmente no servidor anterior, mas no novo não sai desse erro !!!
Alguém tem uma luz ?
Obrigada desde já !
Segue meu .htaccess
<IfModule mod_expires.c>
ExpiresActive on
Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"Your document html
ExpiresByType text/html "access plus 0 seconds"Data
ExpiresByType text/xml "access plus 0 seconds" ExpiresByType application/xml "access plus 0 seconds" ExpiresByType application/json "access plus 0 seconds"RSS feed
ExpiresByType application/rss+xml "access plus 1 hour"Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"Media: images, video, audio
ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType video/ogg "access plus 1 month" ExpiresByType audio/ogg "access plus 1 month" ExpiresByType video/mp4 "access plus 1 month" ExpiresByType video/webm "access plus 1 month"HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"Webfonts
ExpiresByType font/truetype "access plus 1 month" ExpiresByType font/opentype "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month"CSS and JavaScript
ExpiresByType text/css "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresByType text/javascript "access plus 1 year" <IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
supress php errors
php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_flag short_open_tag onModPagespeed off
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.dominio.com.br$ [NC]
RewriteRule ^(.*)$ http://dominio.com.br/$1 [R=301,L]
RewriteRule ^noticia/([^/]*)/$ ver_noticia.php?Cod=$1 [NC]
RewriteRule ^album/([^/]*)/$ ver_galeria.php?Cod=$1 [NC]
RewriteRule ^noticia/([a-zA-Z0-9_-]+)/$ ver_noticia.php?titulo=$1 [NC]
RewriteRule ^noticias/?$ modulos/noticias/noticias.php [NC,L]
RewriteRule ^noticias/([^/]*)/$ modulos/noticias/noticias.php?pagina=$1 [NC,L]
RewriteRule ^fotos/?$ modulos/galeria/fotos.php [NC,L]
RewriteRule ^fotos/([^/]*)/$ modulos/galeria/fotos.php?pagina=$1 [NC,L]
RewriteRule ^buscar/?$ modulos/busca/buscar.php [NC,L]
RewriteRule ^conteudo/([^/]*)/$ conteudo.php?Cod=$1 [NC]
RewriteRule ^evento/?$ modulos/eventos/buscar.php [NC,L]
RewriteRule ^chat/?$ modulos/chat/operator/users.php?nomenu&locale=pt-br [NC]
RewriteRule ^historico/?$ index.php?acao=historico [NC,L]
RewriteRule ^estrutura/?$ index.php?acao=estrutura [NC,L]
RewriteRule ^bases/?$ index.php?acao=bases [NC,L]
RewriteRule ^diretoria/?$ index.php?acao=diretoria [NC,L]
RewriteRule ^fiscal/?$ index.php?acao=fiscal [NC,L]
RewriteRule ^nucleos/?$ index.php?acao=nucleos [NC,L]
RewriteRule ^grupos/?$ index.php?acao=grupos [NC,L]
RewriteRule ^setores/?$ index.php?acao=setores [NC,L]
RewriteRule ^atendimento/?$ index.php?acao=atendimento [NC,L]
RewriteRule ^informes/?$ index.php?acao=informes [NC,L]
RewriteRule ^glossario/?$ index.php?acao=glossario [NC,L]
RewriteRule ^convenios/?$ index.php?acao=convenios [NC,L]
RewriteRule ^processos/?$ index.php?acao=processos [NC,L]
RewriteRule ^logout/?$ logout.php [NC,L]
RewriteRule ^documentos/?$ index.php?acao=documentos [NC,L]
RewriteRule ^publicacoes/?$ index.php?acao=publicacoes [NC,L]
RewriteRule ^jornais/?$ index.php?acao=jornais [NC,L]
RewriteRule ^videos/?$ index.php?acao=videos [NC,L]
RewriteRule ^eventos/?$ index.php?acao=eventos [NC,L]
RewriteRule ^prestacao/?$ index.php?acao=prestacao [NC,L]
RewriteRule ^cadastro/?$ index.php?acao=cadastro [NC,L]
RewriteRule ^cadastro_envia/?$ index.php?acao=cadastro_envia [NC,L]
RewriteRule ^biblioteca/?$ index.php?acao=biblioteca [NC,L]
RewriteRule ^download/([^/]*)$ juridico/modulos/downloads/arquivos/$1 [NC,L]
RewriteRule ^aovivo/?$ index.php?acao=aovivo [NC,L]
RewriteRule ^ouvir/?$ index.php?acao=audio [NC,L]
RewriteRule ^ouvir/([^/]*)/$ index.php?acao=audio&pagina=$1 [NC,L]
Isso acaba bloqueando alguns programas de download também como Flashgertt, gozilla, getright
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR] RewriteCond %{HTTP_USER_AGENT} ^Foobot [OR] RewriteCond %{HTTP_USER_AGENT} ^FrontPage [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR] RewriteCond %{HTTP_USER_AGENT} ^Googlebot-Image [OR] RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] RewriteCond %{HTTP_USER_AGENT} ^Harvest [OR] RewriteCond %{HTTP_USER_AGENT} ^hloader [OR] RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] RewriteCond %{HTTP_USER_AGENT} ^httplib [OR] RewriteCond %{HTTP_USER_AGENT} ^HTTrack [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^humanlinks [OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} ^InfoNaviRobot [OR] RewriteCond %{HTTP_USER_AGENT} ^Internetseer [OR] RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR] RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] RewriteCond %{HTTP_USER_AGENT} ^LexiBot [OR] RewriteCond %{HTTP_USER_AGENT} ^libWeb/clsHTTP [OR] RewriteCond %{HTTP_USER_AGENT} ^LinkextractorPro [OR] RewriteCond %{HTTP_USER_AGENT} ^LinkScan/8.1a.Unix [OR] RewriteCond %{HTTP_USER_AGENT} ^LinkWalker [OR] RewriteCond %{HTTP_USER_AGENT} ^lwp-trivial [OR] RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} ^Mata.Hari [OR] RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [OR] RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR] RewriteCond %{HTTP_USER_AGENT} ^MIIxpc [OR] RewriteCond %{HTTP_USER_AGENT} ^Mister.PiX [OR] RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR] RewriteCond %{HTTP_USER_AGENT} ^moget [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/2 [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3.Mozilla/2.01 [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [OR] RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR] RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR] RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR] RewriteCond %{HTTP_USER_AGENT} ^NetMechanic [OR] RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR] RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [OR] RewriteCond %{HTTP_USER_AGENT} ^NPBot [OR] RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR] RewriteCond %{HTTP_USER_AGENT} ^Openfind [OR] RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR] RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR] RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR] RewriteCond %{HTTP_USER_AGENT} ^ProPowerBot/2.14 [OR] RewriteCond %{HTTP_USER_AGENT} ^ProWebWalker [OR] RewriteCond %{HTTP_USER_AGENT} ^ProWebWalker [OR] RewriteCond %{HTTP_USER_AGENT} ^QueryN.Metasearch [OR] RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR] RewriteCond %{HTTP_USER_AGENT} ^spanner [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR] RewriteCond %{HTTP_USER_AGENT} ^suzuran [OR] RewriteCond %{HTTP_USER_AGENT} ^Szukacz/1.4 [OR] RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport [OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR] RewriteCond %{HTTP_USER_AGENT} ^Telesoft [OR] RewriteCond %{HTTP_USER_AGENT} ^The.Intraformant [OR] RewriteCond %{HTTP_USER_AGENT} ^toCrawl/UrlDispatcher [OR] RewriteCond %{HTTP_USER_AGENT} ^True_Robot [OR] RewriteCond %{HTTP_USER_AGENT} ^turingos [OR] RewriteCond %{HTTP_USER_AGENT} ^TurnitinBot\ [OR] RewriteCond %{HTTP_USER_AGENT} ^TurnitinBot/1.5 [OR] RewriteCond %{HTTP_USER_AGENT} ^URLy.Warning [OR] RewriteCond %{HTTP_USER_AGENT} ^VCI [OR] RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR] RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [OR] RewriteCond %{HTTP_USER_AGENT} ^WWW-Collector-E [OR]#Proteção contra alguns virus e worms
RewriteCond %{REQUEST_URI} /(admin|cmd|httpodbc|nsiislog|root|shell)\.(dll|exe) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.*$ - [L]
Discussão (7)
Carregando comentários...