Jump to content

URL amigable no funciona con nombre dominio


Recommended Posts

Hola,

 

Estoy creando una nueva tienda online con pretashop y a la hora de activar las "URL amigables" al intentar acceder al dominio de la web "www.dominio.es" me sale la web del hosting con el siguiente mensaje:

 

If you are seeing this message, the website for www.dominio.es is not available at this time.

If you are the owner of this website, one of the following things may be occurring:

  • You have not put any content on your website.
  • Your provider has suspended this page.

Please login to https://www.dominio.es:8443 to receive instructions on setting up your website.

Si intento acceder a cualquier otra página de la tienda funciona perfectamente. Al desactivar la opción de "URL amigable" para acceder tengo que poner www.dominio.es/index.php.

Información adicional:

Prestahsop 1.6

.htaccess

<IfModule mod_rewrite.c>

<IfModule mod_env.c>

SetEnv HTTP_MOD_REWRITE On

</IfModule>

 

RewriteEngine on

 

 

#Domain: www.dominio.es

RewriteRule . - [E=REWRITEBASE:/]

RewriteRule ^api$ api/ [L]

 

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

 

# Images

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]

RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]

RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]

# AlphaImageLoader for IE and fancybox

RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

 

# Dispatcher

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]

</IfModule>

 

AddType application/vnd.ms-fontobject .eot

AddType font/ttf .ttf

AddType font/otf .otf

AddType application/x-font-woff .woff

<IfModule mod_headers.c>

<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">

Header add Access-Control-Allow-Origin "*"

</FilesMatch>

</IfModule>

 

#If rewrite mod isn't enabled

ErrorDocument 404 /index.php?controller=404

 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

¿Alguien puede ayudarme?

 

Muchas gracias por adelantado.

 

 

 

Link to comment
Share on other sites

Hola,

 

He comprobado con el hosting que la opción de Apache de mod rewrite está activada, de hecho pensándolo después me extrañó que fuera esto, porque las URL amigables funcionan en toda la web excepto para el raíz, es decir para el www.sinbiosis.es, supongo la Url de un producto (por ejemplo) funciona correctamente. Si el mod rewrite no estuviera activado entiendo que fallaría para todo. Si teneis alguna otra propuesta...es bienvenida, porque la verdad ya no sé por donde mirar.

 

Gracias!

Link to comment
Share on other sites

Buenas, pues lo primero pedirte disculpas, se me pasó una línea esencial, que es lo que comentas, que se ve todo menos el dominio sin index.php

Revisa la configuración de Preferencias > SEO & URL

Mira ver que no tenga en url amigable: index.php

 

Ya nos cuentas.

 

Saludos

Link to comment
Share on other sites

Gracias por la ayuda. La parte de SEO+URL creo que está bien pero os la paso para que me corrijas si me equivoco...

 

URL Amigable: Sí

Rediría a la URL canónica: 301 Movido permanentemente (Aunque he probado con las otras dos opciones también)

Dominio tienda: www.dominio.es

Dominio SSL_ www.dominio.es

Directorio raíz: /

 

Cualquier día me decís.

 

GRACIAS!

Link to comment
Share on other sites

Buenos días.

 

Gracias de nuevo Code-Plus. Lo que mencionas esta en blanco, dentro de SEO+URLs, en index, el campo URL reescrita está en blanco. de hecho no me permite escribir nada en dicho campo. No sé si a lo mejor debería eliminar la entrada de "index" y volver a crearla, lo consulto antes no sea que me cargue algo...

 

Gracias!

Link to comment
Share on other sites

Hola a todos,

 

Al final conseguí resolver el problema. Code-Plus, al final lo que me indicaste no funcionó, pero os cuento...porque era una tontería. Al final no había renombrado el index.html del raíz, lo dicho una tontería. En cualquier caso agradezco mucho tu ayuda Code-Plus, da gusto así.

 

Una brazo a todos.

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...