Problemas con en joomla 3 archivo htaccess

Diseño y Posicionamiento Web con Joomla Foros General Joomla en General Problemas con en joomla 3 archivo htaccess

Mostrando 10 respuestas a los debates
  • Autor
    Entradas
    • #112235
      JoseRJoseR
      Participante

      Buenas amigos,
      Me llamo José. Soy relativamente nuevo en joomla. tengo una web en joomla 3: http://www.enavales.com. Tengo un problema al intentar quitar el index.php. Me interesa tener las URL amigables. Para ello, antes de “usar la escritura de URLs” me informé en 1and1 si tenía el modo mod_rewrite habilitado y si era usuario de Apache. Lo soy. Efectivamente, parecía que renombrando el archivo htaccess antes de activarlo sería suficiente. Pero tenía dos archivos htaccess en el filezilla, uno htaccess.txt y el otro .htaccess. Los dos con contenido. Entonces, borré el .htaccess y renombre el .txt. Luego en “usar reescritura URL” puse “SI” y me apareció un “500 Internal Server Error”.
      Además he probado varias estrategias, es decir, probé primero de poner “SI” en el panel de control, y luego renombrar…y al revés. Pero nada… Además he probado de poner y quitar el # delante de “Options +FollowSymLinks”…. y tampoco funciona en ninguno de los casos. Estoy desesperado…¿alguna idea?
      Gracias!

      ##
      # @package Joomla
      # @copyright Copyright (C) 2005 – 2014 Open Source Matters. All rights reserved.
      # @license GNU General Public License version 2 or later; see LICENSE.txt
      ##

      ##
      # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
      #
      # The line just below this section: ‘Options +FollowSymLinks’ may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url’s. If they work,
      # it has been set by your server administrator and you do not need it set here.
      ##

      ## Can be commented out if causes errors, see notes above.
      #Options +FollowSymLinks

      ## Mod_rewrite in use.

      RewriteEngine On

      ## 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 base64_encode data within the URL.
      RewriteCond %{QUERY_STRING} base64_encode[^(]*([^)]*) [OR]
      # Block out any script that includes a

    • #112236
      JoseRJoseR
      Participante

      Por cierto, les dejo un vídeo para que vean algo de lo que he hecho y algo de hasta dónde he podido llegar. Es un vídeo que he encontrado después de horas buscando por google: http://www.siteground.com/tutorials/joomla-video/migration-final-steps.htm
      Saludos,

    • #112237
      Federico PiccoliFederico Piccoli
      Participante

      Ciao

      [quote=”JoseR” post=32603]…. me informé en 1and1….[/quote]

      Cuentales el problema a éllos, que tengan el mod rwrite habilitado no quiere decir que te funcione cualquier .htaccess

    • #112238
      JoseRJoseR
      Participante

      He llamado mil veces. El problema es que ellos te dicen que es cosa de joomla. Llega un momento que no sabes si realmente el problema es tuyo o de ellos…y más si no tienes conocimientos profundos de webs. Pero gracias por la respuesta. De hecho antes tenía la web con joomla 1.5 y si me funcionaba.

    • #112240
      redloModerador Foro
      Participante

      Donde tienes lo siguiente en .htaccess

      #RewriteBase /

      Ponlo asi

      RewriteBase /index.php

      Accede a la administración, asegurate antes desde tu cliente FTP que los permisos del archivo configuration.php estan para poder escribir en el.
      Ve a Sitio / Configuración Global y en el cuadro Configuración SEO, ponlo de la siguiente manera

      Attachments:
    • #112246
      JoseRJoseR
      Participante

      Muchas gracias por tu respuesta Redlo,
      El problema persiste. Puedo escribir en el archivo .htaccess. He hecho lo que me has indicado, tanto en el propio archivo como en la “configuración global”. Siempre me reescribe la URL. Es decir, por ejemplo: http://www.enavales.com/e-noticias. También he probado de ponerle y quitarle el # antes del “Options +FollowSymLinks” y del RewriteBase /index.php. Pero en cualquier caso, me continúa saliendo el mismo error:

      [i]”Internal Server Error
      The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, 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.”[/i]

      Ahora mismo el .httacces que tengo después de renombrar el htaccess.txt es:

      ##
      # @package Joomla
      # @copyright Copyright (C) 2005 – 2014 Open Source Matters. All rights reserved.
      # @license GNU General Public License version 2 or later; see LICENSE.txt
      ##

      ##
      # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
      #
      # The line just below this section: ‘Options +FollowSymLinks’ may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url’s. If they work,
      # it has been set by your server administrator and you do not need it set here.
      ##

      ## Can be commented out if causes errors, see notes above.
      Options +FollowSymLinks

      ## Mod_rewrite in use.

      RewriteEngine On

      ## 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 base64_encode data within the URL.
      RewriteCond %{QUERY_STRING} base64_encode[^(]*([^)]*) [OR]
      # Block out any script that includes a tag in URL.
      RewriteCond %{QUERY_STRING} (|%3E) [NC,OR]
      # Block out any script trying to set a PHP GLOBALS variable via URL.
      RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
      # Block out any script trying to modify a _REQUEST variable via URL.
      RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
      # Return 403 Forbidden header and show the content of the root homepage
      RewriteRule .* index.php [F]
      #
      ## End – Rewrite rules to block out some common exploits.

      ## Begin – Custom redirects
      #
      # If you need to redirect some pages, or set a canonical non-www to
      # www redirect (or vice versa), place that code here. Ensure those
      # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
      #
      ## End – Custom redirects

      ##
      # Uncomment following line if your webserver’s URL
      # is not directly related to physical file paths.
      # Update Your Joomla! Directory (just / for root).
      ##

      # RewriteBase /index.php

      ## Begin – Joomla! core SEF Section.
      #
      RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      #
      # If the requested path and file is not /index.php and the request
      # has not already been internally rewritten to the index.php script
      RewriteCond %{REQUEST_URI} !^/index.php
      # and the request is for something within the component folder,
      # or for the site root, or for an extensionless URL, or the
      # requested URL ends with one of the listed extensions
      RewriteCond %{REQUEST_URI} /component/|(/[^.]*|.(php|html?|feed|pdf|vcf|raw))$ [NC]
      # and the requested path and file doesn’t directly match a physical file
      RewriteCond %{REQUEST_FILENAME} !-f
      # and the requested path and file doesn’t directly match a physical folder
      RewriteCond %{REQUEST_FILENAME} !-d
      # internally rewrite the request to the index.php script
      RewriteRule .* index.php [L]
      #
      ## End – Joomla! core SEF Section.

    • #112247
      redloModerador Foro
      Participante

      Prueba con este que te he retocado

      ##
      # @package Joomla
      # @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
      # @license GNU General Public License version 2 or later; see LICENSE.txt
      ##

      ##
      # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
      #
      # The line just below this section: 'Options +FollowSymLinks' may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url's. If they work,
      # it has been set by your server administrator and you do not need it set here.
      ##

      ## Can be commented out if causes errors, see notes above.

      Options +FollowSymLinks

      ## Mod_rewrite in use.

      RewriteEngine On

      ## 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 base64_encode data within the URL.
      RewriteCond %{QUERY_STRING} base64_encode[^(]*([^)]*) [OR]
      # Block out any script that includes a tag in URL.
      RewriteCond %{QUERY_STRING} (|%3E) [NC,OR]
      # Block out any script trying to set a PHP GLOBALS variable via URL.
      RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
      # Block out any script trying to modify a _REQUEST variable via URL.
      RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
      # Return 403 Forbidden header and show the content of the root homepage
      RewriteRule .* index.php [F]
      #
      ## End - Rewrite rules to block out some common exploits.

      ## Begin - Custom redirects
      #
      # If you need to redirect some pages, or set a canonical non-www to
      # www redirect (or vice versa), place that code here. Ensure those
      # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
      #

      RewriteCond %{HTTP_HOST} ^enavales.com [NC]
      RewriteRule ^(.*)$ http://www.enavales.com/$1 [L,R=301]

      ## End - Custom redirects

      ##
      # Uncomment following line if your webserver's URL
      # is not directly related to physical file paths.
      # Update Your Joomla! Directory (just / for root).
      ##

      RewriteBase /index.php

      ## Begin - Joomla! core SEF Section.
      #
      # If the requested path and file is not /index.php and the request
      # has not already been internally rewritten to the index.php script
      RewriteCond %{REQUEST_URI} !^/index.php
      # and the request is for something within the component folder,
      # or for the site root, or for an extensionless URL, or the
      # requested URL ends with one of the listed extensions
      RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
      # and the requested path and file doesn't directly match a physical file
      RewriteCond %{REQUEST_FILENAME} !-f
      # and the requested path and file doesn't directly match a physical folder
      RewriteCond %{REQUEST_FILENAME} !-d
      # internally rewrite the request to the index.php script
      RewriteRule .* index.php [L]
      #
      ## End - Joomla! core SEF Section.

    • #112248
      JoseRJoseR
      Participante

      Estimado Redlo,
      Gracias por tu ayuda. Pero continua sin funcionar. Incluso se me ha ocurrido de adjuntar el .htaccess que tenía en el joomla 1.5 pero nada. Te lo adjunto acontinuación:
      Gracias de nuevo.

      ##
      # @version $Id: htaccess.txt 21064 2011-04-03 22:12:19Z dextercowley $
      # @package Joomla
      # @copyright Copyright (C) 2005 – 2010 Open Source Matters. All rights reserved.
      # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
      # Joomla! is Free Software
      ##

      #####################################################
      # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
      #
      # The line just below this section: ‘Options +FollowSymLinks’ may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url’s. If they work,
      # it has been set by your server administrator and you do not need it set here.
      #
      #####################################################

      ## Can be commented out if causes errors, see notes above.
      Options +FollowSymLinks

      #
      # mod_rewrite in use

      RewriteEngine On

      ########## 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!
      #
      ## Deny access to extension xml files (uncomment out to activate)
      #
      #Order allow,deny
      #Deny from all
      #Satisfy all
      #
      ## End of deny access to extension xml files
      # 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 data within the URL
      RewriteCond %{QUERY_STRING} base64_encode[^(]*([^)]*) [OR]
      # Block out any script that includes a tag in URL
      RewriteCond %{QUERY_STRING} (|%3E) [NC,OR]
      # Block out any script trying to set a PHP GLOBALS variable via URL
      RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
      # Block out any script trying to modify a _REQUEST variable via URL
      RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
      # Return 403 Forbidden header and show the content of the root homepage
      RewriteRule .* index.php [F]
      #
      ########## End – Rewrite rules to block out some common exploits

      ########## Begin – Custom redirects
      #
      # If you need to redirect some pages, or set a canonical non-www to
      # www redirect (or vice versa), place that code here. Ensure those
      # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
      #
      ########## End – Custom redirects

      # Uncomment following line if your webserver’s URL
      # is not directly related to physical file paths.
      # Update Your Joomla! Directory (just / for root)

      RewriteBase /

      ########## Begin – Joomla! core SEF Section
      #
      RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      #
      # If the requested path and file is not /index.php and the request
      # has not already been internally rewritten to the index.php script
      RewriteCond %{REQUEST_URI} !^/index.php
      # and the request is for root, or for an extensionless URL, or the
      # requested URL ends with one of the listed extensions
      RewriteCond %{REQUEST_URI} (/[^.]*|.(php|html?|feed|pdf|raw))$ [NC]
      # and the requested path and file doesn’t directly match a physical file
      RewriteCond %{REQUEST_FILENAME} !-f
      # and the requested path and file doesn’t directly match a physical folder
      RewriteCond %{REQUEST_FILENAME} !-d
      # internally rewrite the request to the index.php script
      RewriteRule .* index.php [nc]
      #
      ########## End – Joomla! core SEF Section

      rewritecond %{http_host} ^enavales.com [nc]
      rewriterule ^(.*)$ http://www.enavales.com/$1 [r=301,L]

    • #112249
      redloModerador Foro
      Participante

      A ver, antes de tirarnos de los pelos…

      1.- Comprueba el CHMOD de tu archivo configuration.php y dime que numeración tiene.
      ¿Como se hace?
      Abre tu cliente FTP, y accede a la cuenta de tu web. Una vez ahi, busca el archivo configuration.php y con el boton derecho de tu raton, haz clic estando posicionado encima y se desplegara la ventana y busca y haz clc en Permiso de archivo o alago parecido, y veras el Valor numérico, Dime cual es el valor.

      2.- Comprueba que en tu archivo configuration.php se puede escribir.
      Es decir, editalo desde un cliente FTP, realiza un cambio cualquiera y guarda i cierra, tambien el cliente ftp. Vuelve a abrir, editar y comprobar que el cambio que has hecho esta.

      3.- Si no aparecen los cambios en tu archivo, despues de guardrlos, significa que el archivo no permite esos cambios por los permisos de escritura, CHMOD, asignados. Cambia esos permisos a 666 , guarda e intentalo de nuevo.

      ¿Y los de 1&1 pasan de ti? .

      Saber mas sobre permisos para joomla y cliente FTP

    • #112251
      JoseRJoseR
      Participante

      Buenos días Redlo,
      1. El valor numérico de los permisos de archivo es el “666”. El resto de “casillas” (permisos de propietario, grupo y públicos) están activadas para leer y escribir, pero no lo están para ejecutar.
      2. He escrito una frase cualquiera en configuration.php. Lo he guardado, he cerrado el fllezilla, lo he vuelto a abrir, he reabierto el archivo y los cambios continuaban allí.
      3. He ido descubriendo que 1&1 tiene un muy buen servicio de márqueting pero un pésimo servicio técnico. Volveré a llamarles y escribirles, aunque ya no sé muy bien que decirles o que pueden hacer ellos…

    • #112252
      redloModerador Foro
      Participante

      Prueba subir un joomla 3.3 con datos de ejemplo en una carpeta cualquiera, renombra el htaccess.txt a .htaccess y activa el mod rewrite del apache con los ajustes desde Sitio / configuración glogal.

      Si funciona es tu joomla, si no, es 1and1 y tu alojamiento que funciona correctamente. Asi no le das mas vueltas y tienes donde mostrarles que has probado un joomla LIMPIO y NO funciona y si funciona, ya es cosa de que veas en tu joomla si has instalado algúna extension que hace que tus URLS amigables con el Mod Rewrite no funcione.

Mostrando 10 respuestas a los debates
  • Debes estar registrado para responder a este debate.
Esta web utiliza cookies propias y de terceros para su correcto funcionamiento y para fines analíticos y para mostrarte publicidad relacionada con sus preferencias en base a un perfil elaborado a partir de tus hábitos de navegación. Contiene enlaces a sitios web de terceros con políticas de privacidad ajenas que podrás aceptar o no cuando accedas a ellos. Al hacer clic en el botón Aceptar, acepta el uso de estas tecnologías y el procesamiento de tus datos para estos propósitos. Ver
Privacidad