Warning: Unexpected character in input: '\' (ASCII=92) state=1

Discussion in 'Site & Server Administration' started by touchAshley, Feb 14, 2009.

  1. #1
    I'm using this code to create a 301 redirect from old smf forum to new vbulletin forum. But I'm getting these two errors when i visit an old url:

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /my/absolute/path/vbseo301.php on line 2

    Parse error: syntax error, unexpected T_STRING in /my/absolute/path/vbseo301.php on line 2


    I can't understand the problem?
     
    touchAshley, Feb 14, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Replace following line 2 code:

    * 404 /301 for external and internal link redirect.
    Code (markup):
    with

    /* 404 /301 for external and internal link redirect.
    Code (markup):
    Kailash
     
    kailash, Feb 15, 2009 IP
  3. touchAshley

    touchAshley Active Member

    Messages:
    1,762
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    90
    #3
    It still gives the same errors after trying the above. I don't understand. I can even take out this part:
    
     * 404 /301 for external and internal link redirect.
    *
    * @package            ImpEx.tools
    * @version            $Revision: 1902 $
    * @author            Jerry Hutchings 
    * @modified by             Oleg Ignatiuk 
    */
    Code (markup):
    And it will still say the errors are on line two.
     
    touchAshley, Feb 16, 2009 IP