I have a classifieds site where I would like to list items at a URL structure like this:
That structure is broken down like this (views-page)/(content-type-argument)/(taxonomy-term-arg)/(node-title)
What I want to happen is this: If someone removes then all nodes will be listed that are apartments, which were created with the 'for rent' content type; If someone remove apartments (the tax arg) then all 'for rent' items, regardless of taxonomy, are listed.
See what I am getting at?
My problem is that the content type argument has to be written with an underscore instead of a hyphen before it will work. I want to use a hyphen. It's not as ugly, plus Google specifically recommends hyphens in the url instead of an underscore, and I want to keep google happy.
so, given the above example,
classifieds/for_rent/etc/etc <= works fine.
classifieds/for-rent/etc/etc <= does not work.
How do I use the hypenated form as the argument? Is there a way to do this in views? Is there a way to write something in the .htaccess file so that when an argument is received with a hyphen the url is passed with an underscore behind the scenes?