I have a site on a shared hosting server that is using .htaccess to redirect mydomain.com to www.mydomain.com and to rewrite mydomain.com to mydomain.com/chs (the chs subdirectory is my doc root).
I believe that having a cgi-bin directory under my apache doc root is a bad idea, but my hosting company appears unconcerned and I can't see that I have a choice. Let me know what the risks are, thanks.
I tried using apache mod_rewrite to rewrite the url to my scripts directory:
http://www.mydomain.com/chs/my_scripts/myscript.cgi (current url)
http://www.mydomain.com/chs/abc/myscript.cgi (desired url)
with this apache configuration:
Alias /abc /home/user/path/to/chs/my_scripts
RewriteRule ^/abc/(.*)$ /my_scripts/$1
but the urls to my scripts remain unchanged and no errors appear in the logs (with level warning). I'm trying to accomplish something covered under http://www.experts-exchange.com/Web_Development/Components/Q_27685973.html
and can't see what I'm missing. Help.