Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 12:31:24 AM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12248 Posts in 1446 Topics by 5607 Members
Latest Member: holl511i
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Prestashop
| | | |-+  Friendly Urls in Prestashop
« previous next »
Pages: [1] Print
Author Topic: Friendly Urls in Prestashop  (Read 2801 times)
dannylbrooke
Settling In
**

Karma: 2
Offline Offline

Gender: Female
Posts: 56



WWW
« on: February 27, 2010, 09:16:39 PM »

Am i right in thinking that friendly urls are for example website.com/whitebed instead of website.com/productkjsihvas676874687 for example ??

I have installed Canonical URL v1.3 thinking this was what it was for but i still have non specific urls such as website.com/cms.php?id_cms=9

Can anybody explain what canonical url is for and how i change my urls to something relating to the product rather than a load of random letters etc

Thanks
Danielle x
Logged

scotserve
Guru
Shareholder ;o)
*****

Karma: 36
Online Online

Gender: Male
Posts: 807



WWW
« Reply #1 on: February 27, 2010, 09:47:34 PM »

http://www.mattcutts.com/blog/seo-advice-url-canonicalization/
Logged

Scotserve - Premium Domain and Hosting services since 1994
scotserve
Guru
Shareholder ;o)
*****

Karma: 36
Online Online

Gender: Male
Posts: 807



WWW
« Reply #2 on: February 27, 2010, 09:52:42 PM »

Just looking dannyl and it seems search engine friendly urls are already supported - check out this http://www.prestashop.com/wiki/Products/
Logged

Scotserve - Premium Domain and Hosting services since 1994
JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 406


WWW
« Reply #3 on: February 27, 2010, 10:38:05 PM »

Theres an option in your preferences to enable friendly URL's.

You will also need to create an blank htaccess file and upload that to the root of the site (where all the php files are), and then use the generator in the tools menu to generate the htaccess content.
Logged

Snowboarding Goggles For all things Snowboarding and Skiing.  Goggles, Helmets, Gloves and Clothing.
The Fashion Agent We are your fashion agent.  Designer Clothes, sunglasses, headphones from top designer brands.
dannylbrooke
Settling In
**

Karma: 2
Offline Offline

Gender: Female
Posts: 56



WWW
« Reply #4 on: February 27, 2010, 10:45:04 PM »

John i have clicked on friendly urls and my site isnt working how do i create the file and will this make my site go back to normal ???????????
Logged

fivewood
Liking it Here
***

Karma: 6
Offline Offline

Gender: Male
Posts: 102


WWW
« Reply #5 on: February 28, 2010, 10:15:44 AM »

John i have clicked on friendly urls and my site isnt working how do i create the file and will this make my site go back to normal ???????????

When you say it isnt working, do you mean none of the linkerd pages are being found?
If so, have you created the htaccess file as John says above?

This should fix it
Logged

http://www.footballbits.co.uk - huge selection of officially licenced football souvenirs, merchandise, memorabilia and gifts. Perfect for fans of all ages and at affordable prices.
fivewood
Liking it Here
***

Karma: 6
Offline Offline

Gender: Male
Posts: 102


WWW
« Reply #6 on: February 28, 2010, 10:20:13 AM »

Doh!  Just read your post properly  whistle

To create an htaccess file
Open notepad
Save a blank file as .htaccess   (make sure you change the file type from txt to all files)
Upload the file to your server
Then in PS use the generator to re-create the file

Should be ok then

If you look at the file on the server afterwards you shoud see its not blank anymore but will have something like this in it:


Code:
# .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 ^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]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]
Logged

http://www.footballbits.co.uk - huge selection of officially licenced football souvenirs, merchandise, memorabilia and gifts. Perfect for fans of all ages and at affordable prices.
JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 406


WWW
« Reply #7 on: February 28, 2010, 11:07:31 AM »

Its ok fivewood we sorted this out in chat last night.
Logged

Snowboarding Goggles For all things Snowboarding and Skiing.  Goggles, Helmets, Gloves and Clothing.
The Fashion Agent We are your fashion agent.  Designer Clothes, sunglasses, headphones from top designer brands.
fivewood
Liking it Here
***

Karma: 6
Offline Offline

Gender: Male
Posts: 102


WWW
« Reply #8 on: February 28, 2010, 11:49:16 AM »

Its ok fivewood we sorted this out in chat last night.

Thats me, always late  lol
Logged

http://www.footballbits.co.uk - huge selection of officially licenced football souvenirs, merchandise, memorabilia and gifts. Perfect for fans of all ages and at affordable prices.
dannylbrooke
Settling In
**

Karma: 2
Offline Offline

Gender: Female
Posts: 56



WWW
« Reply #9 on: February 28, 2010, 09:01:00 PM »

Awww Thanks anyway fivewood xx
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009