title: Error 410 gone after moving from local server to live
body: <p>I have created a site and everything is working fine locally in WAMP, however, I moved everything to my shared hosting account and am getting a 410 error:</p>
  <pre><code>Gone
  The requested resource
  /admin/product_edit_parse.php
  is no longer available on this server and there is no forwarding address. Please remove all references to this resource.
  
  Additionally, a 410 Gone error was encountered while trying to use an ErrorDocument to handle the request.
  </code></pre>
  <p>I moved all files and everything else seems to be working so far except for this one file. This file is not actually viewable anywhere it is on the admin side of my site for editing products. My site sends a HTTP request to this page and gets a response via AJAX like so:</p>
  <pre><code>var xmlhttp = new XMLHttpRequest();
  xmlhttp.onreadystatechange = function(){
      if(this.readyState == 4 &amp;&amp; this.status == 200){
          console.log(this.responseText);
      }
  };
  xmlhttp.open(&quot;POST&quot;, query_string, true);
  xmlhttp.send();
  </code></pre>
  <p>I can only see the 410 error in the console when nothing happens.</p>
  <p>If I go directly to the pages URL with the query string attached (<code>admin/product_edit_parse.php?foo=bar&amp;bar=foo</code>) it gives me the same error.</p>
  <p>However, if I go to the URL with out the query string I get a time out error:</p>
  <pre><code>This site can’t be reached
  ************** took too long to respond.
  Try:
  
  Checking the connection
  Checking the proxy and the firewall
  ERR_CONNECTION_TIMED_OUT
  </code></pre>
  <h2>Edit</h2>
  <p>This is how I'm building my query string</p>
  <pre><code>$(&quot;#product_edit_submit&quot;).on(&quot;click&quot;, function(){
      var product_id = $(&quot;#product_id&quot;).val();
      var product_name = $(&quot;#product_name&quot;).val();
      var product_sort = $(&quot;#product_sort&quot;).val();
      var product_category = $(&quot;#product_category&quot;).val();
      var product_attribute = $(&quot;#product_attribute&quot;).val();
      var product_description = richTextField.document.getElementsByTagName('body')[0].innerHTML;
      product_description = product_description.replace(/&amp;quot;/g,&quot;&quot;);
      product_description = product_description.replace(/&amp;nbsp;/g,&quot;&quot;);
      var product_supplier = $(&quot;#product_supplier&quot;).val();
      var product_model_no = $(&quot;#product_model_no&quot;).val();
      var product_cost = $(&quot;#product_cost&quot;).val();
      var product_meta = $(&quot;#product_meta&quot;).val();
      var spec_1 = $(&quot;#spec_1&quot;).val();
      var spec_2 = $(&quot;#spec_2&quot;).val();
      var spec_3 = $(&quot;#spec_3&quot;).val();
      var spec_4 = $(&quot;#spec_4&quot;).val();
      var spec_5 = $(&quot;#spec_5&quot;).val();
      var spec_6 = $(&quot;#spec_6&quot;).val();
      var spec_7 = $(&quot;#spec_7&quot;).val();
      var spec_8 = $(&quot;#spec_8&quot;).val();
      var spec_9 = $(&quot;#spec_9&quot;).val();
      var spec_10 = $(&quot;#spec_10&quot;).val();
      var spec_11 = $(&quot;#spec_11&quot;).val();
      var spec_12 = $(&quot;#spec_12&quot;).val();
      var spec_13 = $(&quot;#spec_13&quot;).val();
      var spec_14 = $(&quot;#spec_14&quot;).val();
      var spec_15 = $(&quot;#spec_15&quot;).val();
      
      var value_1 = $(&quot;#value_1&quot;).val();
      var value_2 = $(&quot;#value_2&quot;).val();
      var value_3 = $(&quot;#value_3&quot;).val();
      var value_4 = $(&quot;#value_4&quot;).val();
      var value_5 = $(&quot;#value_5&quot;).val();
      var value_6 = $(&quot;#value_6&quot;).val();
      var value_7 = $(&quot;#value_7&quot;).val();
      var value_8 = $(&quot;#value_8&quot;).val();
      var value_9 = $(&quot;#value_9&quot;).val();
      var value_10 = $(&quot;#value_10&quot;).val();
      var value_11 = $(&quot;#value_11&quot;).val();
      var value_12 = $(&quot;#value_12&quot;).val();
      var value_13 = $(&quot;#value_13&quot;).val();
      var value_14 = $(&quot;#value_14&quot;).val();
      var value_15 = $(&quot;#value_15&quot;).val();
      
      var pricing = [];
      for (i = 0; i &lt;15; i++) {
          var checkbox = &quot;checkbox&quot;+i;
          if ($(&quot;#&quot;+checkbox).is(':checked')) {
              for (j = 1; j &lt;=2; j++) {
                  var priceValue = 'priceValue'+i+'_'+j;
                  var priceCurrency = 'priceCurrency'+i+'_'+j;
                  var priceAttribute = 'priceAttribute'+i+'_'+j;
                  var value = $('#'+priceValue).val();
                  var currency = $('#'+priceCurrency).val();
                  var attribute = $('#'+priceAttribute).val();
                  var item = [];
                  item.push(value);
                  item.push(currency);
                  item.push(attribute);
                  pricing.push('item'+item);
              }
          }
      }
              
      var formData = new FormData();
      formData.append(&quot;product_image_1&quot;, document.getElementById(&quot;product_image_1&quot;).files[0]);
      formData.append(&quot;product_image_2&quot;, document.getElementById(&quot;product_image_2&quot;).files[0]);
      formData.append(&quot;product_image_3&quot;, document.getElementById(&quot;product_image_3&quot;).files[0]);
      formData.append(&quot;product_image_4&quot;, document.getElementById(&quot;product_image_4&quot;).files[0]);
      formData.append(&quot;product_image_5&quot;, document.getElementById(&quot;product_image_5&quot;).files[0]);
              
      var query_string = &quot;product_edit_parse.php?&quot;;
      query_string += &quot;id=&quot;+encodeURIComponent(product_id);
      query_string += &quot;&amp;name=&quot;+encodeURIComponent(product_name);
      query_string += &quot;&amp;sort=&quot;+encodeURIComponent(product_sort);
      query_string += &quot;&amp;cat=&quot;+encodeURIComponent(product_category);
      query_string += &quot;&amp;att=&quot;+encodeURIComponent(product_attribute);
      query_string += &quot;&amp;desc=&quot;+encodeURIComponent(product_description);
      query_string += &quot;&amp;supp=&quot;+encodeURIComponent(product_supplier);
      query_string += &quot;&amp;mono=&quot;+encodeURIComponent(product_model_no);
      query_string += &quot;&amp;cost=&quot;+encodeURIComponent(product_cost);
      query_string += &quot;&amp;meta=&quot;+encodeURIComponent(product_meta);
      
      query_string += &quot;&amp;spec_1=&quot;+spec_1;
      query_string += &quot;&amp;spec_2=&quot;+spec_2;
      query_string += &quot;&amp;spec_3=&quot;+spec_3;
      query_string += &quot;&amp;spec_4=&quot;+spec_4;
      query_string += &quot;&amp;spec_5=&quot;+spec_5;
      query_string += &quot;&amp;spec_6=&quot;+spec_6;
      query_string += &quot;&amp;spec_7=&quot;+spec_7;
      query_string += &quot;&amp;spec_8=&quot;+spec_8;
      query_string += &quot;&amp;spec_9=&quot;+spec_9;
      query_string += &quot;&amp;spec_10=&quot;+spec_10;
      query_string += &quot;&amp;spec_11=&quot;+spec_11;
      query_string += &quot;&amp;spec_12=&quot;+spec_12;
      query_string += &quot;&amp;spec_13=&quot;+spec_13;
      query_string += &quot;&amp;spec_14=&quot;+spec_14;
      query_string += &quot;&amp;spec_15=&quot;+spec_15;
      
      query_string += &quot;&amp;value_1=&quot;+value_1;
      query_string += &quot;&amp;value_2=&quot;+value_2;
      query_string += &quot;&amp;value_3=&quot;+value_3;
      query_string += &quot;&amp;value_4=&quot;+value_4;
      query_string += &quot;&amp;value_5=&quot;+value_5;
      query_string += &quot;&amp;value_6=&quot;+value_6;
      query_string += &quot;&amp;value_7=&quot;+value_7;
      query_string += &quot;&amp;value_8=&quot;+value_8;
      query_string += &quot;&amp;value_9=&quot;+value_9;
      query_string += &quot;&amp;value_10=&quot;+value_10;
      query_string += &quot;&amp;value_11=&quot;+value_11;
      query_string += &quot;&amp;value_12=&quot;+value_12;
      query_string += &quot;&amp;value_13=&quot;+value_13;
      query_string += &quot;&amp;value_14=&quot;+value_14;
      query_string += &quot;&amp;value_15=&quot;+value_15;
          
      query_string += &quot;&amp;price_array=&quot;+pricing;
      console.log(query_string);
          
      var xmlhttp = new XMLHttpRequest();
      xmlhttp.onreadystatechange = function(){
          if(this.readyState == 4 &amp;&amp; this.status == 200){
              console.log(this.responseText);
          }
      };
      xmlhttp.open(&quot;POST&quot;, query_string, true);
      xmlhttp.send(formData);
  });
  </code></pre>
  <p><code>console.log(query_string);</code> returns:</p>
  <pre><code>product_edit_parse.php?id=1&amp;name=TPM%200.1-Lifting%20Magnet%20100kg&amp;sort=1&amp;cat=1&amp;att=1&amp;desc=%0A%09%09%20%3Cp%3ETPM%200.1%20Permanent%20Lifting%20Magnet%20Capacity%3A%20100kg%3C%2Fp%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%20xml%3D%22space%22%3E%3C!--%20p.p1%20%7Bmargin%3A%200.0px%200.0px%200.0px%200.0px%3B%20font%3A%208.0px%20Times%7D%20p.p2%20%7Bmargin%3A%200.0px%200.0px%200.0px%200.0px%3B%20font%3A%2010.0px%20Times%7D%20--%3E%3C%2Fstyle%3E%20%3Cp%3ETPM%20permanent%20lifting%20magnets%20are%20ideal%20tools%20for%20easy%2C%20quick%20and%20economical%20transport%20of%20heavy%20objects%20made%20from%20ferro-magnetic%20material.%20Typical%20operating%20areas%20are%20workshops%20and%20warehouses%2Cloading%20and%20unloading%20of%20machines%20as%20well%20as%20construction%20of%20jigs%20and%20fixtures.%3C%2Fp%3E%20%3Cp%3E%3Cspan%20class%3D%22Apple-converted-space%22%3E%3C%2Fspan%3EFactors%20that%20reduce%20the%20magnetic%20clamping%20force%3A%3C%2Fp%3E%20%3Cp%3EAir%20gap%3A%20High%20magnetic%20forces%20created%20by%20the%20TPM%20allow%20the%20magnet%20to%20clamp%20components%20through%20the%20air%20gap%2C%20however%2C%20air%20gaps%20will%20reduce%20the%20magnetic%20performance%20as%20they%20provide%20a%20barrier%20between%20the%20contact%20surfaces.%20Air%20gaps%20occur%20in%20a%20number%20of%20different%20ways%20such%20as%20paint%2C%20dust%20and%20heavy%20mill%20scale.%20Poorly%20machined%20surfaces%20also%20constitute%20an%20air%20gap.%20Please%20down%20rate%20the%20magnet%20capacity%20in%20accordance%20with%20the%20adhesive%20force%2Fair%20gap%20diagram%20below.%3C%2Fp%3E%20%3Cp%3EMaterial%20thickness%3A%20If%20the%20TPM%20is%20used%20to%20lift%20plates%20thinner%20than%20the%20recommended%20minimum%20thickness%2C%20the%20clamping%20forces%20will%20be%20significantly%20reduced.%20Performance%20curves%20can%20be%20identified%20in%20conjunction%20with%20the%20adhesive%20force%2Fflat%20thickness%20diagram%20below%3A%3C%2Fp%3E%20%3Cp%3EContact%20area%3A%20Full%20lifting%20capacity%20can%20only%20be%20achieved%20when%20the%20magnet%20has%20full%20contact%20area%20with%20the%20component%20being%20lifted.%20If%20the%20contact%20surface%20has%20holes%20in%20or%20is%20uneven%20then%20the%20performance%20will%20be%20affected%20accordingly.%20Always%20carry%20out%20a%20trial%20lift%20in%20these%20circumstances%20to%20establish%20correct%20lifting%20before%20transporting%20the%20load.%3C%2Fp%3E%20%3Cp%3EMaterial%20type%3A%20Certain%20materials%20have%20different%20abilities%20to%20carry%20magnetism.%20For%20materials%20other%20than%20mild%20steel%20a%20reduction%20factor%20must%20be%20applied%20in%20order%20to%20calculate%20the%20effective%20clamping%20force.%3C%2Fp%3E%20%3Cp%3ETypical%20values%3A%3C%2Fp%3E%20%3Cp%3EFerrous%20alloy%20steels%200.8%3C%2Fp%3E%20%3Cp%3EHigh%20carbon%20steels%200.7%3C%2Fp%3E%20%3Cp%3ECast%20iron%200.55%3C%2Fp%3E%20%3Cp%3EExamples%20of%20reduced%20WLL%3A%3C%2Fp%3E%20%3Cp%3EMild%20steel%20500g%3C%2Fp%3E%20%3Cp%3ECast%20iron%20500kg%20x%200.55%20%3D%20275kgs%3C%2Fp%3E%0A&amp;supp=&amp;mono=&amp;cost=&amp;meta=&amp;spec_1=&amp;spec_2=&amp;spec_3=&amp;spec_4=&amp;spec_5=&amp;spec_6=&amp;spec_7=&amp;spec_8=&amp;spec_9=&amp;spec_10=&amp;spec_11=&amp;spec_12=&amp;spec_13=&amp;spec_14=&amp;spec_15=&amp;value_1=&amp;value_2=&amp;value_3=&amp;value_4=&amp;value_5=&amp;value_6=&amp;value_7=&amp;value_8=&amp;value_9=&amp;value_10=&amp;value_11=&amp;value_12=&amp;value_13=&amp;value_14=&amp;value_15=&amp;price_array=
  </code></pre>