VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: ezynet on December 09, 2015, 04:41:34 AM

Title: shortened sef url with Product SKU
Post by: ezynet on December 09, 2015, 04:41:34 AM
I want to be able to have a QR code on the product to go to the product page on my website.
I can only have up to 30 characters so for the url instead of http://xxx.com/shop/auto-locks/audi-igntion-barrel-for-audi-80-c-12-103_ I would like the sef links to simply be something short like:  http://xxx.com/AUD-IC-01 the last digits is the product_sku code

I am using Joomla 3.4.5 with Virtuemart 3.0.12.  I have installed artio joomsef but still cannot work out how to do this... Any help anyone could give me in how to make this happen would be greatly appreciated.
Title: Re: shortened sef url with Product SKU
Post by: GJC Web Design on December 09, 2015, 09:38:05 AM
the sef url is simply the product alias..  set them to what you want
Title: Re: shortened sef url with Product SKU
Post by: Studio 42 on December 10, 2015, 01:14:00 AM
If you have not many products, you can use .htaccess rules
eg.
RewriteRule ^QRA-(.*)$ http://yoursite.com/shop/cat-a/$1-detail [R=301,L]
RewriteRule ^QRB-(.*)$ http://yoursite.com/shop/cat-b/$1-detail [R=301,L]

Then you can shorten your url to http://yoursite.com/QRA-productname for real link http://yoursite.com/shop/cat-a/productname -detail
I think that using yoursite.com/QRA-productname should be valid to set a link, but do some test
Title: Re: shortened sef url with Product SKU
Post by: ezynet on December 10, 2015, 01:27:16 AM
i have over 1700 products... :( so one by one is not going to work for me...  I need to be able to automate it to just be my domain name/product_sku by default. is there any way to do that easily?
Title: Re: shortened sef url with Product SKU
Post by: GJC Web Design on December 10, 2015, 10:30:07 AM
Stu 42's suggestion would men you would only need as many rules as categories
Title: Re: shortened sef url with Product SKU
Post by: ezynet on December 10, 2015, 21:50:53 PM
That does work but instead of using the product name is there anyway of using the product sku code so that its even more shortened (the names on my site can get quite long)
ie  http://xxx.co.nz/QRA-AUD-IC-01 instead of  http://xxx.co.nz/QRA-audi-igntion-barrel-for-audi-80-c-12-103
Title: Re: shortened sef url with Product SKU
Post by: GJC Web Design on December 10, 2015, 21:53:18 PM
why are u worried about long?  as I read it people believe "informative" urls are better for SEO
Title: Re: shortened sef url with Product SKU
Post by: ezynet on December 10, 2015, 23:26:33 PM
 I want to be able to have a QR code on the product to go to the product on the website
I can only have up to 30 characters
Title: Re: shortened sef url with Product SKU
Post by: Studio 42 on December 11, 2015, 12:58:12 PM
SO this need then a special Joomla plugin that check the URL and redirect to right product.
I think it's the lightest solution to develop.
Title: Re: shortened sef url with Product SKU
Post by: Milbo on January 04, 2016, 15:42:11 PM
No, he just needs to use the last version and use either the svn for the last router, or he buys the membership. There is a new option, called seo_full