Apache Redirects

Discussion in 'General' started by Spudchat, Apr 27, 2007.

  1. Spudchat

    Spudchat New Member


    I'm wondering if it would be allowed to put a redirect I was going to put in a .htaccess file into the ISPConfig "Apache Directives" for the site. If so would the syntax be identical? I was planning on using something like this:

    Redirect 301 /var/www/web2/somedir/file.php http://www.example.org/somedir/

    In case your wondering why I would want to do that, I was tidying up and (hopefully) further securing a php email script. I'm hoping this will redirect users who try and access the script without accessing the page that calls it. I was thinking about doing it with php, but there would be all kinds of problems and a quick google of it turns up a way to get around it as the first result.

  2. falko

    falko Super Moderator ISPConfig Developer

    Should work. :)

Share This Page