Page 1 of 4 1234 LastLast
Results 1 to 15 of 48
  1. #1

    Exclamation Huge trouble with Hostgator and now I'M in huge trouble.

    I've got an email in to Brent and "Joseph" on the phone. Haven't heard back from Brent yet and have Joseph on the phone as I type.

    The problem is this:

    For some reason – all of a sudden my Rewrite (within .htaccess) commands are NO longer working. All of my Google URLs point to clean URL (written from dynamic) and now none of them work (returning 404 Errors)…

    I’m dead in the water without them and I can’t seem to get beyond “Joseph” for help.

    Please Please Please help. I have nowhere else to turn.

    It looks like the last time Google indexed the page was March 31, 2012... so something had to have changed between then and now...

    Any thoughts?

    Please help,
    Pete

  2. #2
    Join Date
    Mar 2009
    Location
    Miami, Florida
    Posts
    18,861
    Hello,
    Have you checked the "Error Logs" in cPanel to see what is causing the issue
    Keith I Myers
    CEO and Founder - RemoteRAM.com
    The world leader in Cloud Based RAM
    KMyers.me The rantings of a lunatic

  3. #3
    It comes back as file not found...

  4. #4
    Join Date
    Mar 2009
    Location
    Miami, Florida
    Posts
    18,861
    Quote Originally Posted by CrazyPete View Post
    It comes back as file not found...
    Which file not found? Can you paste part of it (remove any personal items)
    Keith I Myers
    CEO and Founder - RemoteRAM.com
    The world leader in Cloud Based RAM
    KMyers.me The rantings of a lunatic

  5. #5
    Here is what happens...

    You take a link like this:
    http://www.mydomain.com/shop_pageloop.html

    it is actually rewriting something like this:

    http://www.mydomain.com/webstore/web...sion_id_place=

    for each html file there is a "sister" file called whaterthefilenameis.cgi

    for example:

    pageloop.cgi

    in this .cgi file there is the same exact code that looks like this:

    #!/usr/bin/perl

    $0=~s/\/usr\/home\/pmt\/webstore\///;
    $0=~s/\.cgi//;
    $ENV{QUERY_STRING}="page=$0.html";
    $ENV{CONTENT_LENGTH}=length($ENV{QUERY_STRING});
    #print "Content-type: text/html\n\n";
    #print "page=$0.html";
    #exit;
    system("/home/pmt/public_html/webstore/web_store.cgi");

    On March 30-31 Google indexed it and all was fine. Now they are ALL coming back as 404. I finally gave up with "Joseph" from Hostgator - NASTY, RUDE, and VERY condescending. Just a HORRIBLE HORRIBLE HORRIBLE rep. I don't say this about too many people, but if he lost his job tomorrow I'd be ok with it. He didnt' care ONE BIT that I'm going to lose MY job over this. Totally Horrible.

    NOTHING has changed on my side, I pleaded with him to help me, and I could here him "sigh" over the phone. He could care less.

    This is a HUGE problem.
    Last edited by CrazyPete; 04-10-2012 at 10:41 AM.

  6. #6
    Here is my htaccess file:

    Code:
    Options +FollowSymLinks ExecCGI FollowSymLinks +Includes
    
    DirectoryIndex webstore/web_store.cgi index.cgi index.htm index.html
    
    RewriteEngine on
    
    
    #ScriptAliasMatch ^/shop_(.*)\.html /home/pmt/public_html/webstore/$1.cgi
    
    
    #Browser shows old url
    RewriteCond %{REQUEST_URI} !/store/Html
    RewriteRule ^store/(.*)$ /webstore/web_store.cgi?product=$1 [L]
    RewriteCond %{REQUEST_URI} /store/Html/Images
    RewriteRule ^store/(.*)$ /webstore/$1 [L]
    
    #Sree 26 May 2006
    #http://www.mydomain.com/shopitem/pic1430lg
    #http://www.mydomain.com/webstore/web_store.cgi?keywords=pic1430lg&detail=yes&cart_id=6462826A24791&session_id_place=
    RewriteCond %{REQUEST_URI} !/shopitem/Html
    RewriteRule ^shopitem/(.*)$ /webstore/web_store.cgi?detail=yes&keywords=$1 [L]
    RewriteCond %{REQUEST_URI} /shopitem/Html/Images
    RewriteRule ^shopitem/(.*)$ /webstore/$1 [L]
    
    #Browser howes new URL
    RewriteRule ^stores/(.*)$ /webstore/web_store.cgi?product=$1 [R,L]
    #Alias /store/Html/Images /home/pmt/public_html/webstore/Html/Images
    
    # -FrontPage-
    
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName mydomain.com
    AuthUserFile /home/pmt/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/pmt/public_html/_vti_pvt/service.grp

  7. #7
    Get this...

    if you look at the htaccess file...

    "shopitem" works fine and so does "Store"

    It appears that only the one that works with the .cgi file I mentioned above (shop_) does not work...

    Yet there is a # in front of the only code that deals with shop_ ???

    I tried removing the # to see if somebody at HostGator made the change for some reason, and that didn't fix the problem either... except this time it returned an Internal Server Error...

    Ugh. Help.

  8. #8
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,837
    Quote Originally Posted by CrazyPete View Post
    The only thing that looks like it could rewrite that url is this:
    Quote Originally Posted by CrazyPete View Post
    Code:
    #ScriptAliasMatch ^/shop_(.*)\.html /home/pmt/public_html/webstore/$1.cgi
    but it's commented out. Have you tried just removing the initial # from that line?

    On a more general note, your whole system looks like a nasty outdated insecure mess. A more thorough cleanup by an experienced developer would be highly recommended...

    Edit: Ok, that sounds like progress. You'll find the reason for the 500 (internal server) error in your error log.
    Last edited by foobic; 04-10-2012 at 10:56 AM. Reason: +
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  9. #9
    foobic... I'm interested in how it can be made into a non-outdated insecure mess... thoughts?

    Pete

  10. #10
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,005
    Have you made any .htaccess changes recently, do you have a backup of a .htaccess file from prior to the errors?

  11. #11
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,837
    Quote Originally Posted by CrazyPete View Post
    foobic... I'm interested in how it can be made into a non-outdated insecure mess... thoughts?
    I guess that would depend on whether the website has been built on a sound script that's been hacked around (the SEO-friendly links etc.) or if the underlying program is ancient / unsupported / insecure. A quick Google for web_store.cgi finds eXtropia web store - is it based on that?
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  12. #12
    Yes. That webstore... please keep in mind all the "Issues" that it "had" are not an issue here.
    Last edited by CrazyPete; 04-10-2012 at 11:21 AM.

  13. #13
    Loon, I found a very old version of .htaccess and that #ScriptAliasMatch is still commented out... so that's not the trouble...
    Ugh.

  14. #14
    It appears that there was something done beyond my account that worked with the .cgi file and has now stopped working... The problem is I don't know what it was that was done in order to tell HostGator that this is the change they made... and they don't seem to know the change that was made in order to change it back or tell me how to make it so that it will work. I'm keeping this thread updated as things change with the hope that Brent will be along and see it... hopefully before search engines get hit with all the 404 errors that are being created.

  15. #15
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,837
    Quote Originally Posted by CrazyPete View Post
    Yes. That webstore... please keep in mind all the "Issues" that it "had" are not an issue here.
    Right. Were they fixed by the same guy who devised that great system you described in post #5?

    TBH, I'm wondering how this would ever have worked:
    Code:
    #!/usr/bin/perl
    
    $0=~s/\/usr\/home\/pmt\/webstore\///;
    $0=~s/\.cgi//;
    $ENV{QUERY_STRING}="page=$0.html";
    $ENV{CONTENT_LENGTH}=length($ENV{QUERY_STRING});
    #print "Content-type: text/html\n\n";
    #print "page=$0.html";
    #exit;
    system("/home/pmt/public_html/webstore/web_store.cgi");
    If your home directory is /home/pmt (should be something like that on most cPanel hosts) then why is the first line trying to substitute "/usr/home/pmt/webstore" out of the script filename?

    To answer the earlier question I'd suggest abandoning this and migrating to something a little more current, unless you have a really good perl dev on standby.

    Good luck...
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

Page 1 of 4 1234 LastLast

Similar Threads

  1. Need Huge Space & Bandwidth Hostgator?
    By sahithp in forum Web Hosting
    Replies: 14
    Last Post: 11-07-2009, 05:46 PM
  2. Is our host having tech trouble--or money trouble?
    By SPjunior in forum Hosting Security and Technology
    Replies: 5
    Last Post: 02-16-2007, 04:21 AM
  3. HUGE Trouble on horizon for pair.com? Please help me.
    By CrazyPete in forum Web Hosting
    Replies: 58
    Last Post: 07-12-2006, 06:04 PM
  4. Replies: 0
    Last Post: 06-29-2005, 11:55 AM
  5. Classic Rackshack trouble ticket....... trouble
    By GordonH in forum Dedicated Server
    Replies: 19
    Last Post: 04-15-2002, 01:07 PM

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •