Forum Moderators: phranque
Because of the way our rewrite will have to occur, I have to use a special character before the KW in my string, so that leaves me with mydomain.com/_keyword/widgets/
Can anyone forsee any potential negative effects of doing this? I figure using the underscore is the best option, but it can be anything. Please advise. Thanks!
As long as you've got a unique character, then you can use it to locate the part of the URL you want to manipulate using mod_rewrite. The hyphen is seen by Google as a space, so it does not cause keyword-widget to be seen as one word instead of two, as an underscore or other character would.
Plus, placing a hyphen between the words doesn't look as funny as a leading underscore, or cause people to make errors when transcribing links to paper, as [example.com...] might; The link underline can "cover up" an underscore, as shown, and make it look like a space.
Jim
[example.com...]
You can parse the two keywords in mod_rewrite and/or your scripts by looking for "-".
Jim
I don't think my technical team is setup to combine the honda and civic names like you recommended.
If you were in a position where you had to keep the model in a directory within the manufacturer, what would you say?
What if I did: mydomain.com/shop/Honda/Civic/?
Would that be just as effective as mydomain.com/Honda/Civic?
If you prefer the "shop/" to a hyphen, then go for it. I just thought the hyphen "read better." Either way, you should be able to easily extract the following/surrounding parts of the URL for rewriting, and it should also be easy to do the opposite conversion in your php files with preg_replace.
Jim