Jump to content

[Solucionado] - URL amigable (seo friendly)


Recommended Posts

Hola, cada vez que activo la opción URL amigable de prestashop cuando voy a la home me aparece:

Not Found
The requested URL /es/ was not found on this server.

image.png

Edited by nadie
Moderación del foro edita el título añadiendo la palabra "Solucionado" al título del mismo (el autor indica en uno de sus mensaje que ha solucionado el problema). (see edit history)
Link to comment
Share on other sites

Hola, he dado con el error. 

Tenía mal configurado el vhost.

Me ha servido este tutorial de instalación:  https://websiteforstudents.com/install-prestashop-on-ubuntu-17-04-17-10-with-apache2-mariadb-and-php/

 

antes

<VirtualHost *:80>
    ServerName dominio-x.es
    ServerAdmin miemail@yo.com
    RewriteEngine on  -> este era el error
    DocumentRoot /var/www/html/ruta-a-mi-carpeta/
    #<Directory /var/www/html/>AllowOverride All</Directory>
</VirtualHost>

tenia que poner esto:
    <Directory /var/www/html/ruta-a-mi-carpeta/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
    </Directory>

quedando asi

<VirtualHost *:80>
    ServerAdmin micorreo@somemail.com
    DocumentRoot "/var/www/html/ruta-a-mi-carpeta"
    ServerName midominio.es
    ServerAlias midominio.es

    <Directory /var/www/html/ruta-a-mi-carpeta/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog /var/www/html/ruta-a-mi-carpeta/error.log
    CustomLog /var/www/html/ruta-a-mi-carpeta/access.log combined
</VirtualHost>

 

Edited by Eduardo A (see edit history)
Link to comment
Share on other sites

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