Pages:

Search Engine Optimization

wallace

No avatar

2006-02-02 13:54

Hi.... ** what about this spam bot that came to this topic??

I am trying to parse sName in the url.

From .htaccess:
RewriteRule ^(.*).html /index.php/?p=productsList&iCategory=$1

And in categories_menu.tpl :
&nbsp;<a href='$aList[sName].html'

But that does not work somehow.

The basics: parsing the iCategory works fine... so why not this example?
If i could get an hold on that one and make it work i would be happy to write a doc what and where to edit on this forum.

Regards!

wizzud

No avatar

2006-02-05 11:52

wallace >>

The 'i' in 'iCategory' indicates an integer. So the internal link requires iCategory to be the id of the category, not the name, and you are trying to use the name. The only way you can use the name in ithe internal link is to change the way QC determines what category is being requested, ie. from an id lookup to a name lookup. The alternative is to make your rewrite rule specific to named categories, eg.

RewriteRule ^MyCategory.html index.php?p=productsList&iCategory=2 [NC,L]

wallace

No avatar

2006-02-06 20:22

Thanks... more digging is needed i see...

Are these adds put in by bots that seem to have found this forum?

Pages:
Back to top
about us | contact