1

我当前的 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 上传来验证我的谷歌应用程序域。但是当访问 url mydomain.com/google00ff0108e32428b8.html 时,我收到错误页面 404。

遵循 [Codeigniter .htaccess file config for google-apps domain verification exception 中的指南后,我仍然收到相同的错误页面

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

4

2 回答 2

2

简单的:

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

应该做

于 2016-09-28T10:36:15.190 回答
1

这里问了一个类似的问题,答案很清楚,你也可以使用其他方法来验证你的域,使用谷歌的站长工具,比如使用 cname 和 txt 记录。以及元标记。

于 2013-12-24T03:57:42.670 回答