Forum Moderators: phranque
Brand_Name/Blue_Widgets.htm
I want to use:
brand-name/blue-widgets.htm
because I see that Google doesn't much care for the underscore and seems to preferentially bold lowercase URLs in SERPs but not upper or mixed case ones. (Not sure if this is generally true or just in my case.)
I think it will take me two rewrite steps.
First, I think I need to rewrite to a parser page (e.g. parse.htm?folder=Brand_Name&file=Blue_Widgets.htm).
Then I think I need to change the values from Brand_Name and Blue_Widgets.htm to brand-name and blue-widgets.htm. (Actually, this part is a little fuzzy to me because I'm not sure how to do what I want.)
Second, I need to rewrite from the parser page to brand-name/blue-widgets.htm
Is it possible to do this in one fell swoop with regex or do I need two rewrite steps? My hope is that this is so blindingly obvious that I've just missed its simplicity.
Thanks.
If your URLs always contain only one underscore, and it it is always in the same "area" of the URL, you won't need anything that complicated, and in that case, you probably can do the rewrite in one step.
Jim
As far as going one step at a time, the first step is to define precisely what needs to be done.
Then define what "tools" can be used to reach that goal, i.e. mod_rewrite, php, perl, etc.
Then define what needs to be done in the terms used by those tools.
Finally, implement the solution.
80 percent of the work is in the first three planning steps above, only 20 percent in the implementation.
Jim