[solved] rewrite error

Discussion in 'General' started by fxjudy, Jul 19, 2013.

  1. fxjudy

    fxjudy New Member

    Hello,
    I keep getting rewrite error in server log,but I don't know how to fix it,please help me.

    [Rewrite] Line ended with '$' while parsing: RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
    Last edited by a moderator: Jul 22, 2013
  2. NiteWave

    NiteWave Administrator

    the correct one should be:

    RewriteRule (.*) ^http://%{REMOTE_ADDR}/$1 [R=301,L]
  3. fxjudy

    fxjudy New Member

    Thank you for your reply.
    Another question,server request a none exist favicon url,and result in a 404 not found error.
    like this in firebug
    NetworkError: 404 Not Found - http://www.topgiftssite.com/favicon.ico?id=0.547004595642902

    I have this code in header:
    <link rel="Shortcut Icon" href="http://www.topgiftssite.com/wp-content/plugins/genesis-favicon-uploader/favicons/favicon.ico" type="image/x-icon" />
  4. webizen

    webizen New Member

    not sure what you mean. the URL returns 200 status which means the resource does exist.

  5. fxjudy

    fxjudy New Member

    Hi,thank you for help!
    After upload favicon.ico to root folder,it solved the problem.
    Last edited: Jul 21, 2013

Share This Page