Rewriting a Rewritten URL

Discussion in 'Apache' started by schlottke, Dec 16, 2010.

  1. #1
    Here is what I've got:

    RewriteRule ^(tags)/(.*)$ /tags.php?search_in_description=1&tags=$2&sort=2a&page=1 [QSA,L]
    PHP:
    which rewrites to:

    http://www.domain.com/tags/Tag+Name
    PHP:
    http://www.domain.com/tags/Tag Name
    PHP:
    or any other character you type in..

    I'd like to force the links to go to the conically correct (the one with the + in it) URL. How should I construct the rewrite so it does this most effectively? If it can be done so that the first letter after the + is also forced into capitalization that'd be great, too.
     
    Last edited: Dec 16, 2010
    schlottke, Dec 16, 2010 IP