开发者

How to verify 301 redirect

Other than having to install something like Fiddler on my server, after adding a redirect in IIS, is there a log or something or a way built-in to show me that a valid 301 redirect took place other than seeing it redi开发者_开发技巧rect at runtime? I guess what I want is true proof so that I can verify it's really doing the 301 for SEO even though I did state in IIS in the redirect module to 301 redirect as the kind of redirect. I don't trust the UI until I can verify the response if you know what I mean. The worst case I guess I could install fiddler and watch the header.


TELNET to your server on port 80. Type the following:

GET /your.url HTTP/1.1
Host: your.hostname.here

Follow it with two blank lines, and you should see the response in your telnet window. If the first line of response headers looks something like HTTP/1.x 301 MOVED PERMANENTLY, then its working.

EDIT: Of course, nobody should actually use telnet anymore, when we have tools like PuTTY available.


Fiddler isn't installed on your server. you install it on the the client. I'd use fiddler, or the net tab of firebug.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜