Can't access CGI-BIN!

Discussion in 'Apache' started by lip9000, Jan 22, 2009.

  1. #1
    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!:)
     
    lip9000, Jan 22, 2009 IP
  2. HSH

    HSH Peon

    Messages:
    73
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    HSH, Jan 23, 2009 IP
  3. lip9000

    lip9000 Peon

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    lip9000, Jan 23, 2009 IP
  4. HSH

    HSH Peon

    Messages:
    73
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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?
     
    HSH, Jan 23, 2009 IP
  5. lip9000

    lip9000 Peon

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    lip9000, Jan 23, 2009 IP