Skip to content Skip to navigation

Remove cgi-bin from your path

Posted by: 

From Ken Sharp:

Want to hide the cgi-bin portion of a Drupal installation on Leland? Here’s what I did:

1. I have a clean Drupal installation called drupal-test in /afs/ir/dept/stucomp/cgi-bin/drupal-test
2. In settings.php in the drupal sites\default directory, uncomment the $base_url variable and change it to:
$base_url = ''; //NO trailing slash!
3. In /afs/ir/dept/stucomp/WWW, create an .htaccess file with the following:
RewriteEngine on
RewriteBase /dept/stucomp/
RewriteRule ^drupal/?(.*)$ cgi-bin/drupal-test/$1