PDA

View Full Version : .htaccess redirect for cgi-bin folder.



chetanmadaan
06-29-2011, 11:22 PM
we had have a cgi-bin file/ something like /cgi-bin/shoot.cgi

and we want all the users now to redirect to another page... however, it's not working.

i have already tried.

Redirectpermanent /cgi-bin/old.file http://www.YourDomain.tld/path/to/new/file.php

and (however, the code below works on cpanel hosting)

RedirectMatch 301 /cgi-bin/file.cgi http://www.google.com

our server is as follows:

PHP Built on:Linux JH01 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64
PHP Version: 5.2.10
Database Version: 5.0.77
Database Collation: utf8_general_ci
PHP Version: 5.2.10
Web Server: Apache/2.2.3 (CentOS)
Web Server to PHP interface: cgi-fcgi


any tips???