[Resolved] rewrite error

Status
Not open for further replies.
#1
Hello,
I keep getting rewrite error in server log,but I don't know how to fix it,please help me.

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

NiteWave

Administrator
#2
the correct one should be:

Apache config:
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$1 [R=301,L]
 
Last edited by a moderator:
#3
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
I have this code in header:
HTML:
<link rel="Shortcut Icon" href="http://www.topgiftssite.com/wp-content/plugins/genesis-favicon-uploader/favicons/favicon.ico" type="image/x-icon" />
 
Last edited by a moderator:

webizen

Well-Known Member
#4
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
...
not sure what you mean. the URL returns 200 status which means the resource does exist.

Code:
~>curl -A "" -I "http://www.topgiftssite.com/favicon.ico?id=0.547004595642902"
HTTP/1.1 200 OK
Date: Sat, 20 Jul 2013 00:08:15 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Pragma: public
Cache-Control: public
Cache-Control: max-age=31536000
Expires: Sun, 20 Jul 2014 00:08:15 GMT
ETag: "2626c-51e4c87c-0"
Last-Modified: Tue, 16 Jul 2013 04:13:48 GMT
Content-Type: image/x-icon
Content-Length: 156268
...
~>
 
Last edited by a moderator:
Status
Not open for further replies.
Top