2013-03-13 84 views
1

我目前htaccess的內容是:.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上傳Apps網域。但是,當訪問網址mydomain.com/google00ff0108e32428b8.html時,我收到錯誤頁面404。

我仍然遵循的方針從谷歌 - 應用程序域驗證例外 [笨.htaccess文件配置

請幫我允許htaccess文件域驗證URL後收到了同樣的錯誤頁面。

回答

1

有人問過類似的問題here答案很清楚,您還可以使用其他方法使用Google網站管理員工具驗證您的域,例如使用cname和txt記錄。以及元標籤。

2

簡單:

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

應該做

+0

這是正確的答案,只要它是第一位在'.htaccess'文件。 – 2016-11-08 03:52:23