RewriteRule for sending params doesnt work at site root, but works everywhere else

Discussion in 'Apache' started by apmouse, Apr 7, 2010.

  1. #1
    RewriteRule ^(.*)$ /site/index.php [L]

    at site root, this forwards to /site/index.php without the params

    if you path in browser to /site/nothing?test=1 this forwards to index.php with test=1 in $_GET

    if the url calls a non existent folder with site params /a/nothing?test=1
    it will rewrite to /site/index.php with test=1 in $_GET

    but why is it that at site root the params dont forward? what would cause apache to fail to send the params over if the browser paths to root

    /nothing?test=1
    becomes
    /site/index.php no test in $_GET
     
    apmouse, Apr 7, 2010 IP
  2. esupportsnet

    esupportsnet Greenhorn

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Hello,

    Could you please paste here the full rewrite rule in your .htaccess file and exact path of .htaccess?
     
    esupportsnet, Apr 8, 2010 IP