Change in .htaccess file

Discussion in 'Site & Server Administration' started by Om ji Kesharwani, Aug 9, 2010.

  1. #1
    Om ji Kesharwani, Aug 9, 2010 IP
  2. mmua

    mmua Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ugly hack :)

    RewriteEngine On
    RewriteCond %{QUERY_STRING} user=([a-zA-Z0-9_-]+)&post=([0-9]+)
    RewriteRule ^client.php.* http://%1.mydomain.com/client.php?post=%2 [R=301,L]

    my personal preference is to route everything to my script and then do with query strings whatever you want
     
    mmua, Aug 12, 2010 IP