【问题标题】:.htaccess file config for google-apps domain verification exceptiongoogle-apps 域验证异常的 .htaccess 文件配置
【发布时间】:2023-03-24 18:52:01
【问题描述】:

我目前的 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 域。但是当我访问 url mydomain.com/google00ff0108e32428b8.html 时收到错误页面 404。

遵循以下指南后,我仍然收到相同的错误页面 [用于 google-apps 域验证异常的 Codeigniter .htaccess 文件配置

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

【问题讨论】:

    标签: html google-apps


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      简单:

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

      应该这样做

      【讨论】:

      • 这是正确答案,前提是它位于 .htaccess 文件的首位。
      猜你喜欢
      • 2011-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-11
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      相关资源
      最近更新 更多