There are lines in my .htaccess file that are stopping me from accessing the cgi-bin, as all keywords redirect to users profiles, so currently if i try mydomain.com/cgi-bin , it thinks that cgi-bin is a user profile. Here is the code: RewriteEngine on RewriteRule ^(images\/|js\/|social[0-9]?\.css)(.*)$ $1$2 [L] RewriteRule ^([^/\.])+\/(images\/|js\/|social[0-9]?\.css)(.*)$ $1$2 [L] RewriteRule ^(advertising|usermap)\/([0-9]+)\/?(\?(.+))?$ page.php?id=$1&p=$2&$4 [QSA,L] RewriteRule ^search\/?$ search.php [L] RewriteRule ^adserver\/?$ /index.php [L] RewriteRule ^lovetest\/?$ /lovetest/index.php [L] RewriteRule ^video\/?$ /index.php [L] RewriteRule ^music\/?$ /index.php [L] RewriteRule ^blogs\/?$ /index.php [L] RewriteRule ^chat\/?$ /pjirc/index.php [L] RewriteRule ^([^/\.&]+)\/photos$ view.php?n=$1&viewphotos [L] RewriteRule ^([^/\.&]+)\/?(&.+)?$ view.php?n=$1$2 [L] RewriteRule ^[^/\.]+\/[a-zA-Z0-9-]+-([0-9]+)(&.+)?$ view.php?pid=$1$2 [L] Code (markup): What do I need to add so that it ignores cgi-bin and lets me access it? thanks heaps!
ScriptAlias /cgi-bin/ /var/www/cgi-bin/ (Whatever your ABSOLUTE path to cgi bin is) See http://httpd.apache.org/docs/2.0/mod/mod_alias.html for more info.
When I added that line on the end and tried to access a users profile mydomain.com/username I got this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
You need to look at ther error log and see what the exact error is. Do you host this site, or do you only have cpanel access?
I don't host it but I do have cpanel access. I can't see anything in the error log at the moment there are 100 scripts being run each second on my site.