is this mod rewrite properly done?

Discussion in 'PHP' started by baris22, Oct 31, 2008.

  1. #1
    I did a mod rewrite code. I do not know if it is the right way to do.
    it works perfect but can somebody check if it is done properly?

    
    
    RewriteRule (.*)/index-(.*)\.htm$   search.php?q=$1&s=$2 [QSA,L]
    RewriteRule (.*)/index(.*)\.htm$   search.php?q=$1 [QSA,L]
    
    
    Code (markup):
    output is

    
    search.php?q=xxxxx             xxxxx/index.htm
    search.php?q=xxxxx&s=40        xxxxx/index-40.htm
    
    
    Code (markup):
    Thanks
     
    baris22, Oct 31, 2008 IP
  2. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah, it's fine. :)
     
    keyaa, Nov 2, 2008 IP