WebmasterSite.net

can commas be replaced by mod_rewrite?

Version:
URL:

PrintPrint


can commas be replaced by mod_rewrite?
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #1
Posted 03/05/08 - 10:04 PM:

Some of my categories have commas in them so when using URL rewriting it reverts back to the category ID, is there a way to replace commas with another character in the same way spaces are replaced with underscores?
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
Paul
developer
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 03/06/08 - 5:38 PM:

You'll have to use a rewrite scheme that includes the id (like {CATREWRITEPATH}-{CATID}/{PAGE}.htm) in order for special characters to work. Even if I added yet a third replacement option after spaces and ampersands, you'd have to be replacing it with something else that you'd never want to mean literally.
hai
Forum Regular
Avatar

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 93
Total Posts: 335

Last Blog: CafePress Shops Free Shipping on $50 till 2/8

quote post #3
Posted 03/06/08 - 7:50 PM:

I had actually figured most of that out, but I don't know enough about rewrite to be able to actually implement it. Everything I tried wouldn't work and I wasn't able to figure it out from the existing htaccess.

The more I think about it the less important it becomes so I guess I'll just leave it as is. Thanks for your help.
High Aspirations, Inc. - Web Site Design & More
http://www.highaspirationsinc.com/

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. - Dr. Seuss
 
Search thread for
Download thread as


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