服务器签名关闭无法在.htaccess上使用 [英] Server Signature off not working on .htaccess

查看:69
本文介绍了服务器签名关闭无法在.htaccess上使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力提高我在SEO中的网站排名.我做了很多工作,而且我从C级提高到B级,但是从早上开始,我一直在尝试2种方法.

I am working hardly to improve my website rank in SEO.I have done many and i have improved from C grade to B grade ,But from morning onwards i have been trying out 2 things .

  1.IP CANONICALIZATION 
  2.TURN OFF SERVER SIGNATURE

我添加了以下内容以将服务器签名关闭到我的.htaccess文件夹下的public_html文件夹中

i have added the following to turn off the server signature to my .htaccess under public_html folder

 #Turn Off sserver signature
 ServerSignature Off

对于IP规范化,.htaccess中包含的代码是

For Ip canonicalization ,thec code i have included to the .htaccess is

 RewriteCond %{HTTP_HOST} ^xxx\.xx\.xxx\.xxx [nc,or]
 RewriteCond %{HTTP_HOST} ^example\.com [nc]
 RewriteRule (.*) http://www.example.com/$1 [R=301,L]

它们都无法正常工作,因为我已经通过SEO分析工具进行了检查 http://www.seositecheckup.com /,但另一个SEO分析工具 http://www.woorank.com/则说正在工作

both of them are not working as i have checked it through a SEO analyzing tool http://www.seositecheckup.com/ ,but another SEO analyzing tool http://www.woorank.com/ saying that both are working

任何人都会说我可以信任的人,我在代码中做错了什么

Do any would say which one that can i trust ,what i am doing wrong in code

推荐答案

根据Apache ServerTokens仅用于服务器配置,不适用于.htaccess,这意味着您只能通过httpd.conf文件进行更改.

According to the Apache ServerTokens is only for server config not .htaccess which means you can only change them via httpd.conf file.

Description:    Configures the Server HTTP response header
Syntax:         ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full
Default:        ServerTokens Full
Context:        server config
Status:         Core
Module:         core

服务器令牌

这篇关于服务器签名关闭无法在.htaccess上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆