WebmasterSite.net

SEO Rewrite Category Urls with comma's
Not being rewritten

Version: 5.1.18
URL: http://www.kangnido.com/

PrintPrint


SEO Rewrite Category Urls with comma's
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 45
Total Posts: 111
quote post #1
Posted 01/13/10 - 7:37 AM:

e.g. Category: Farms, Dairies, Ranches & Wineries
is being rewritten as the category number NOT as for example ~/links/farms-dairies-ranches-and-wineries-

And any subcategories thereunder are all out putted as category numbers.
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 01/14/10 - 2:39 AM:

Both end up numeric for me (which is how it should be). In fact, both are numeric on your website everywhere I can find. The link to the category you described is http://www.kangnido.com/3/ everywhere I can find on your site. Where does it use the non-numeric URL?
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 45
Total Posts: 111
quote post #3
Posted 01/15/10 - 7:49 AM:

Well, what I should be asking is that "working as intended" for categories with commas?

Because if I go here ie. Computers & Telecommunications I get:
http://www.kangnido.com/computers-and-telecommunications-/

Which is not a numeric representation.


Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 01/16/10 - 6:14 AM:

"Computers & Telecommunications" doesn't have any commas, so it's not numeric, nor should it be -- and it works fine.

Commas make it numeric (unless you set your preferred URL when submitting/editing the category). Ampersands rewrite as "and", not numeric. Spaces rewrite as hyphens, not numeric. Any other special characters rewrite as numeric.

Aside: you're getting extra hyphens at the end of some of your URLs (like that example) because you have useless spaces at the end of those category names.

Edited by Paul on 01/16/10 - 6:19 AM
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 45
Total Posts: 111
quote post #5
Posted 01/16/10 - 7:52 AM:


Commas make it numeric (unless you set your preferred URL when submitting/editing the category).


So subcategories are treated the same way as the parent regardless of whether they have commas or not? Seems that way. ie. if the parent or top category has commas then everything else under it is numeric.


Aside: you're getting extra hyphens at the end of some of your URLs (like that example) because you have useless spaces at the end of those category names.


Yeah. I imported those from another db and a space must of come along with it.

Got a quick and dirty way of cleaning those up?

Edited by tradenet on 01/16/10 - 8:23 AM
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #6
Posted 01/18/10 - 12:20 AM:

It all depends on your rewrite scheme. If your rewrite scheme uses the category name that involves the comma for the applicable category, then it's numeric. The default rewrite scheme uses the full path with all the parents so it affects subcategories.

Removing all trailing spaces would require writing a script to reparse the database. It'd probably take me half an hour so I'd charge $25 for it.
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.