Forum Moderators: phranque
some of the make model values can be double barreled names like
search_results.php?make=make+name&model=model+name so therefore required static looking url
make+name-model+name.htmlQuestion is how to I replace the + sign with an inderscore?
The RewriteRule you posted is not involved does not need to be changed.
I am aware that due to very sloppy use of language on the Web, the phrase "use mod_rewrite to change your URL" is common. But in fact, mod_rewrite cannot change a URL, because the URL is defined by a link on a page.
Mod_rewrite *can* be used to externally redirect a URL, but that does not change the original URL.
Mod_rewrite can also be used to associate any file on your server with any URL requested from your server -- That is to say, "If this URL is requested, go get (or generate) the content from that file." This is termed "an internal rewrite."
So, two important points are that a URL is not a file and a file is not a URL -- They are separate and different things, and an external redirect and an internal rewrite are also two different things.
Jim
You will have to escape the "+" characters in your patterns by typing "\+", though. Otherwise, the "+" characters in your patterns will be treated as regular-expressions "one or more of the preceding" quantifiers.
Jim
[edited by: jdMorgan at 1:20 pm (utc) on July 26, 2008]