我們最近將2個網站移至完整SSL,因爲我們知道Google對安全網站的評級更高。但已經過了兩個月了,我們的網站沒有被索引爲SSL。.htaccess 301 https://未重定向到https://未被Google索引
例如;
在我們的Joomla網站上放置ssl的一個星期內,我們所有的網址都在https中改爲https://這就是我們想要的 - 這是因爲我們在Joomla htaccess中設置了301重定向。
但是在我們的Opencart網站上有一個不同配置的htaccess文件,它仍然只在Google上顯示非SSL結果。 SSL在我們的網站上正常運行,並且自Google以來已被抓取數十次,但由於某些原因,Google不會將我們作爲https網站編入索引。
我想在我們的htaccess中沒有設置正確的301重定向。我已在下面附上它:
#gzip starts
<ifModule mod_deflate.c>
<filesMatch "\.(js|css|txt|woff)$">
SetOutputFilter DEFLATE
</filesMatch>
</ifModule>
#cache starts
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|woff|txt)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 14 days"
</IfModule>
Header unset ETag
FileETag None
</FilesMatch>
#domain rewrite starts
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule^http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.gomobility.ie/$1 [R=301,L]
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie./becomes /shop/
RewriteBase/
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off
# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off
# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M
# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M
# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200
# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200
# 7. disable open_basedir limitations
# php_admin_value open_basedir none
任何幫助,真的不勝感激。
埃姆,使網站通過SSL只是在谷歌較高的排名?我很好奇目前的* SEO/SEM政治*會導致哪些...換句話說:看起來像任何你可以支付的服務將會*幫助你的網站排名更高* - 或換句話說 - 如果你想要排名更高,你將需要購買任何可用的服務... – shadyyx 2014-09-24 09:23:19
閱讀[這篇短文]下的推文(http://searchengineland.com/seo-industry-tweets-reactions-googles-ssl-ranking-boost- 199510),這可以使你的一天 - 使我確信:-) – shadyyx 2014-09-24 09:26:05
這個問題似乎是脫離主題,因爲它是關於[webmasters.se] – hjpotter92 2014-09-24 09:32:51