Closed Thread
Results 1 to 4 of 4

Thread: Redirects - Syntax error
      
   

  1. #1
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default Redirects - Syntax error

    I noticed this morning that some of my redirects created in CP -Redirects were not working. They do show up in CP Redirects and looked fine to me. I did not find them in htaccess file.

    For example, I was tryng to redirect http://www.thegoofygiftshop.com/ex-boyfriend_gum.html to
    http://www.thegoofygiftshop.com/ex-boyfriend_gum.php

    So I deleted that entry and tried to add it again but I get this message:
    "Apache detected an error in the Rewrite config.

    Syntax error on line 704 of /home/uyuldura/public_html/.htaccess.bvzj9CIkjfjN5NGDXuRMWK1DhxBj0eI3:
    ErrorDocument takes two arguments, Change responses for HTTP errors

    Please try again."

    So I take it that something is wrong with my Error Page? I just can't figure out what could be wrong that would affect some of the pages but not all.

    And I do not know how to find line 704 in my htaccess because in Wordpad there are not that many lines. Of course, I probably wouldn't know what to do if I found line 704.

    What does this error message mean? and how do I correct it so I can add the redirects? and does this affect my error page in any way?
    Thanks

  2. #2
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Redirects - Syntax error

    dont use wordpad. Use notepad

    If you did the redirect in cpanel you will first have to remove it. Then you can do a line by line.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default Re: Redirects - Syntax error

    Oops, it was notepad I was using.

    I found it in Redirects and did remove it by deleting it It no longer shows in Redirects. And when I try it add it again is when I get that error message.
    I'm not following you on the line by line? Is that the same as adding each redirect via the CPanel?

    Thanks

  4. #4
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default Re: Redirects - Syntax error

    I believe I solved it! The very last line in my .htaccess was
    ErrorDocument 404 / Error Page

    So I deleted that and now I can enter my redirects. And they redirected.

    I think I remember something about adding that but I don't remember why I did it. Believe I read - or misread -it here in the forum

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49