我们最近将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