Adding a query string to a subdomain ...

Discussion in 'Apache' started by OnABeach, Dec 14, 2009.

  1. #1
    More in hope that expectation ... :)

    having spend half a day + getting nowhere ...

    I want to rewrite

    http://www.subdomain.domain.com/

    to

    http://www.subdomain.domain.com/?id=blah

    Just the one simple url rewrite, no matching expressions or anything, with an index.php file in root of subdomain

    This is one of my last dying attempts

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{THE_REQUEST} \/index.php\ HTTP 
    RewriteRule index.php index.php\?id=blah [L,R=301]
    Code (markup):
    Any help at all ... At the moment the browser just coughs and gives up
     
    Last edited: Dec 14, 2009
    OnABeach, Dec 14, 2009 IP