Announcement

Collapse
No announcement yet.

404 Custom Page Causes cgi error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    404 Custom Page Causes cgi error

    When I write a 404 error page, either as a separate html page uploaded to my root directory or as a brochure page in SD, and add a line to the .htaccess file (ErrorDocument 404/full url of my page.html) uploaded to root directory, I get an error message when uploading site in Sellerdeck, about not finding cgi scripts. The .htaccess file without the ErrorDocument, just with simple Redirects, works fine and produces no error messages in SD. What am I doing wrong? Any ideas?

    Sarah

    #2
    It may depend on what the exact contents of the .htaccess are and if there is anything in there to cause a conflict.
    Peblaco

    Comment


      #3
      Contents of .htaccess

      Hello Louise. The .htaccess file just contains the 404 entry (ErrorDocument 404/full-url-of-my-file.html)
      and straightforward Redirects of pages that were working fine, eg
      Redirect 301 /atkins-ready-to-drink-shakes_138038.html http://www.lowcarbmegastore.com/acat...ns-Shakes.html

      I am putting the .htaccess file and the 404 document in my root directory, just as I did previously for the .htaccess file without the ErrorDocument line.

      SD will not upload because of the cgi-bin error and not being able to ftp. I have had to remove the 404 document and the link to it.

      Because the website has been re-written in Sellerdeck, replacing website written in other software, I am trying to get people on to the new website without error messages. The straightforward redirects, which I wrote for all the links that came up on Google on the first page, was working fine on its own.

      Sarah

      Comment


        #4
        Sorted - here is how

        I have solved this by reading the help files on 1 and 1. The problem was in the syntax. It should be ErrorDocument 404 http://myurl etc, not ErrorDocument 404/http: etc - there is a space before and after 404 and no /.

        I have done this the same for each error page, and seems to work OK and no error in Sellerdeck.

        I am still having a problem with the code for redirecting https to http. It is not sorted by the other error pages. I can enter it without causing a SD error, but it doesn't work in doing the redirecting. There are various versions I have found when searching, and I have tried each. May have to just leave it.

        Sarah

        Comment

        Working...
        X