mod_rewrite question

Discussion in 'Apache' started by James McMurray, Mar 30, 2008.

  1. #1
    Is it possible to do a mod_rewrite that matches any number of parameters. For example, my url could be any of:

    domain.com/index.php&page=home
    domain.com/index.php&page=campaign&id=4
    domain.com/index.php&page=campaign&id=4&action=edit

    Or any number of other possibilities depending on the page type. Is there a way to do a line or two (or 10) of rewrite rules rather than needing one line per possible url?

    Thanks!

    P.S.

    Also, is there a way to have the user's url show special characters? For instance, if the page was index.php&name=Doctor What?, the apostrophe and space would be in the location bar instead of %20 and %3F?
     
    James McMurray, Mar 30, 2008 IP
  2. James McMurray

    James McMurray Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just thought I'd give it a friendly bump. :)
     
    James McMurray, Apr 2, 2008 IP