Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

JS & VM - Excluding duplicate product URLs
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: JS & VM - Excluding duplicate product URLs

JS & VM - Excluding duplicate product URLs 17 years, 4 months ago #2719

I've been working to get rid of duplicate URLs on my site, and using \"Ignore multiple sources (Itemids)\" have removed them from traditional Joomla content.

When it comes to VirtueMart, I'm still having problems, and believe my best option is to ignore the \"manufacturer_id\" and \"category_id\" variables when generating SEF URLs.

I think I could do it myself if I had some guidance on which files will contain the necessary code. I could duplicate the code from one of the existing Ignore functions and amend it to ignore my variables.

Has anyone else attempted anything simlar?<br><br>Post edited by: rippyuk, at: 2007/07/27 02:40

Re:JS &amp; VM - Excluding variables other than itemi 17 years, 4 months ago #2720

Found a workaround by using no category names in URLs, and using the following in .htaccess

RewriteRule ^(.*)-[0-9]{1,2}\.html$ http://www.xxxxxx.xxx/$1.html [L,R=301]


This basically uses a 301 redirect for URLs like product-name-2.html, product-name-3.html - taking them to product-name.html

This should be fine.

Re:JS &amp; VM - Excluding variables other than it 17 years, 4 months ago #2730

  • _fD_
  • OFFLINE
  • Posts: 32
Hello Neil,

thanks for this tip! Is there a way this to do with categories on, p.e.:
 
RewriteRule ^(.*)-[0-9]{1,2}\.html$ http://www.xxxxxx.xxx/*/$1.html [L,R=301]


Whit /* for the categories?

Thanks again.

Best Regards, Urs

Post ge�ndert von: _fD_, am: 28/07/2007 16:38<br><br>Post ge&auml;ndert von: _fD_, am: 28/07/2007 16:39
  • Page:
  • 1
Přihlášení uživatele Prázdný