P@#$%¨! UHUUU!
Eu tava a umas
duas semanas tentando resolver a p#% de um problema num servidor que dava m#$% com o SEF, mas, foi SÓ adicionar
Quote:
ErrorDocument 404 /index.php # se o site ficar em um subdiretório use /subdiretorio/inde.php
no .htacess e AGORA o OpenSEF funciona sem mod_rewrite ativado! Foi só testar pra ver se dava certo pra te ajudar e e resolvi um problema nuns dos meus joomla num servidor diferente deu! Bah, até vou soltar uns rojão de felicidade.
Aeee, por isso que eu tambem gosto de ajudar os outros, agente acaba se beneficiando.
Qualquer coisa aprende a instalar o OpenSEF. Eu largueis uns tutoriais aqui pelo forum que explicam como usá-lo.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
webmaster@dfinfo.com.br 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.
[Tue Jan 23 09:54:55 2007] [alert] [client 200.228.199.2] /home/dfinfo/public_html/site/.htaccess: Options not allowed here, referer:
http://www.dfinfo.com.br/site/[Tue Jan 23 09:54:55 2007] [alert] [client 200.228.199.2] /home/dfinfo/public_html/site/.htaccess: Options not allowed here, referer:
http://www.dfinfo.com.br/site/[Tue Jan 23 09:54:56 2007] [alert] [client 200.228.199.2] /home/dfinfo/public_html/site/.htaccess: Options not allowed here, referer:
http://www.dfinfo.com.br/site/[Tue Jan 23 09:54:57 2007] [alert] [client 200.228.199.2] /home/dfinfo/public_html/site/.htaccess: Options not allowed here
##
# @version $Id: htaccess.txt 5973 2006-12-11 01:26:33Z robs $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license
http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla!/MamboDirectory (just / for root)
RewriteBase /site
ErrorDocument 404 /site/index.php
########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section
########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a