Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/02/2015, 05:17
Avatar de Goullak
Goullak
 
Fecha de Ingreso: junio-2014
Mensajes: 32
Antigüedad: 9 años, 10 meses
Puntos: 0
Redireccion a la pagina de inicio

Hola,

He migrado una web a un hosting distinto del que tenia en origen y después de configurar todo lo referente a archivos de configuración, base de datos y demás se muestra la web, pero cuando quiero navegar por ella siempre va al inicio, aun cuando las direcciones se están formando bien.

Esta es la web:

http://s566577060.mialojamiento.es

Puede que sea un problema de .htaccess, pero en el otro hosting estaban funcionando perfectamente y en este únicamente he modificado el dominio del que está colgando. He probado con estos dos y nada:

<IfModule mod_rewrite.c>
Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteBase /
# Send request via index.php (again, not if its a real file or folder)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

Y con este otro:

AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>
RewriteEngine On

# Quitar el www del nombre de dominio
#RewriteCond %{HTTP_HOST} ^s566577060.mialojamiento\.es/clickbuy/$ [NC]
#RewriteRule ^(.*)$ http://www\.s566577060.mialojamiento.es/clickbuy//$1 [R=301,QSA,L]

# Force www.
#RewriteCond %{HTTP_HOST} ^(s566577060.mialojamiento\.es/clickbuy/)$ [NC]
#RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]



# CACHE MENSUAL
<FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>

# CACHE SEMANAL
<FilesMatch "\.(js|css|pdf|txt)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>


RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

Gracias!