.htaccess文件配置用于google-apps域名验证例外

问题描述 投票:1回答:2

我目前的htaccess内容是:

# @package Mambo Open Source
# @copyright (C) 2005 - 2006 Mambo Foundation Inc.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
#
# Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure
# that Mambo remained free Open Source software owned and managed by enter code herethe community.
# Mambo is Free Software
##

#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if your webserver's URL 
#  is not directly related to physical file paths.
#  Update YourMamboDirectory (just / for root)

# RewriteBase /YourMamboDirectory

#
#  Rules
#

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^content/(.*) index3.php
RewriteRule ^component/(.*) index3.php
RewriteRule ^mos/(.*) index3.php

我想使用HTML上传来验证我的google apps域名。但是,当访问网址mydomain.com/google00ff0108e32428b8.html时,我收到错误第404页。

按照[Codeigniter .htaccess文件配置中的google-apps域验证异常的指导原则后,我仍然收到相同的错误页面

请帮我在htaccess文件中允许域验证URL。

html google-apps
2个回答
2
投票

简单:

RewriteEngine On
RewriteRule google00ff0108e32428b8.html google00ff0108e32428b8.html [L]

应该做


1
投票

类似的问题被问到here答案非常清楚,您还可以使用其他方法使用谷歌网站管理员工具验证您的域名,例如使用cname和txt记录。以及元标记。

© www.soinside.com 2019 - 2024. All rights reserved.