My ISP (XO Communications) forces all scripts to be in the CGI directory. So if I want to have a URL of www.domain.com/gallery.php, the user has to type www.domain.com/cgi/gallery.php. This must be a common scenario.
What I want is for www.domain.com/gallery.php to implictly mean www.domain.com/cgi/gallery.php.
I tried creating a .htaccess file with the following entry.
redirect 301 / //www.domain.com/cgi
or
redirect 301 /web //www.domain.com/cgi
or
redirect 301 /web/test_index.html [domain...]
none of which worked. In short I am trying to hide the CGI portion of the URL no matter what. So the user never sees it. Is this possible?