Jump to content

friendly url ver 1.3.6


pesto

Recommended Posts

ciao a tutti , attivare i friendly url nella versione 1.3.6 mi da qualche problemuccio; creo un file vuoto in notepad lo chiamo .htaccess e lo inilo nella cartella di prestashop, abilito i friendly url do l'ok e poi vado in generatori ma ancora non mi compare il pulsante genera...
ho provato anche a copiare questo testo nel file .htaccess:
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]

RewriteRule ^lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$2&isolang;=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order.php(.*)$ /order.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/order-confirmation.php(.*)$ /order-confirmation.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/history.php(.*)$ /history.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/my-account.php(.*)$ /my-account.php?isolang=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order-slip.php(.*)$ /order-slip.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/addresses.php(.*)$ /addresses.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/address.php(.*)$ /address.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/identity.php(.*)$ /identity.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/discount.php(.*)$ /discount.php?isolang=$1 [L,E]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

ma lo stesso nada..a qalcuno é già capitato?

Link to comment
Share on other sites

ciao a tutti , attivare i friendly url nella versione 1.3.6 mi da qualche problemuccio; creo un file vuoto in notepad lo chiamo .htaccess e lo inilo nella cartella di prestashop, abilito i friendly url do l'ok e poi vado in generatori ma ancora non mi compare il pulsante genera...
ho provato anche a copiare questo testo nel file .htaccess:
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]

RewriteRule ^lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$2&isolang;=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order.php(.*)$ /order.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/order-confirmation.php(.*)$ /order-confirmation.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/history.php(.*)$ /history.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/my-account.php(.*)$ /my-account.php?isolang=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order-slip.php(.*)$ /order-slip.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/addresses.php(.*)$ /addresses.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/address.php(.*)$ /address.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/identity.php(.*)$ /identity.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/discount.php(.*)$ /discount.php?isolang=$1 [L,E]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

ma lo stesso nada..a qalcuno é già capitato?






aggiungo anche che sto usando vista quindi non é necessario settare i permessi in 777 . é già tutto ok
ma non mi fa generare il file..
Link to comment
Share on other sites

ciao a tutti , attivare i friendly url nella versione 1.3.6 mi da qualche problemuccio; creo un file vuoto in notepad lo chiamo .htaccess e lo inilo nella cartella di prestashop, abilito i friendly url do l'ok e poi vado in generatori ma ancora non mi compare il pulsante genera...
ho provato anche a copiare questo testo nel file .htaccess:
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]

RewriteRule ^lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$2&isolang;=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order.php(.*)$ /order.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/order-confirmation.php(.*)$ /order-confirmation.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/history.php(.*)$ /history.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/my-account.php(.*)$ /my-account.php?isolang=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order-slip.php(.*)$ /order-slip.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/addresses.php(.*)$ /addresses.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/address.php(.*)$ /address.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/identity.php(.*)$ /identity.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/discount.php(.*)$ /discount.php?isolang=$1 [L,E]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

ma lo stesso nada..a qalcuno é già capitato?






aggiungo anche che sto usando vista quindi non é necessario settare i permessi in 777 . é già tutto ok
ma non mi fa generare il file..




penso si tratti di un problema di permessi con vista...
come si settano?
proprietà->ma sono tutti spuntati non capisco..
Link to comment
Share on other sites

ciao a tutti , attivare i friendly url nella versione 1.3.6 mi da qualche problemuccio; creo un file vuoto in notepad lo chiamo .htaccess e lo inilo nella cartella di prestashop, abilito i friendly url do l'ok e poi vado in generatori ma ancora non mi compare il pulsante genera...
ho provato anche a copiare questo testo nel file .htaccess:
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]

RewriteRule ^lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$2&isolang;=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order.php(.*)$ /order.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/order-confirmation.php(.*)$ /order-confirmation.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/history.php(.*)$ /history.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/my-account.php(.*)$ /my-account.php?isolang=$1 [L,E]

RewriteRule ^lang-([a-z]{2})/order-slip.php(.*)$ /order-slip.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/addresses.php(.*)$ /addresses.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/address.php(.*)$ /address.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/identity.php(.*)$ /identity.php?isolang=$1 [L,E]
RewriteRule ^lang-([a-z]{2})/discount.php(.*)$ /discount.php?isolang=$1 [L,E]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

ma lo stesso nada..a qalcuno é già capitato?






aggiungo anche che sto usando vista quindi non é necessario settare i permessi in 777 . é già tutto ok
ma non mi fa generare il file..




penso si tratti di un problema di permessi con vista...
come si settano?
proprietà->ma sono tutti spuntati non capisco..



risolto mi sono copiato un altro file .htaccess preso da un altro sito dove funzionava.....
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...