RewriteRule doesn't work in .htaccess files on this server

Discussion in 'Setting-up protection' started by microlinx, Oct 27, 2004.

  1. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Sorry not sure what protection method you tryed to use then?
  2. XUnleash

    XUnleash aMember Pro Customer

    Joined:
    Aug 29, 2006
    Messages:
    34
    I started getting this error too. I had to comment out the lines in protection_check_new_rewrite and it started working again.

    WHen I run the tests/bla/1.php I get 2-second_file, but it still doesnt work and tells me that RewriteRule doesn't work in .htaccess files on this server, so something is messed up somewhere.
  3. XUnleash

    XUnleash aMember Pro Customer

    Joined:
    Aug 29, 2006
    Messages:
    34
    This may help... when I debug it, I get this:

    You don't have permission to access /premium/plugins/protect/new_rewrite/tests/mod_rewrite/1.php on this server.

    So the query you are using, is returning that. Guessing somewhere there is a .htaccess that says do not let direct queries of anything in the plugins/protect folders?
  4. XUnleash

    XUnleash aMember Pro Customer

    Joined:
    Aug 29, 2006
    Messages:
    34
    Ok, I think I have figgured it out. With the Virtual domains on the server, requests are not coming from 127.0.0.1 but from the IP of the server. Hence it was blocking it. This may help others.
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Thanks for the info!

Share This Page