เขียนเวบด้วย codeignitor
้htaccess ดักเวลาคนพิมพ์ลิงค์ ให้ เปลี่ยนเป็น https
AddDefaultCharset UTF-8
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
First rewrite to HTTPS:
Don't put www. here. If it is already there it will be included, if not
the subsequent rule will catch it.
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Now, rewrite any request to the wrong domain to use www.
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
RewriteCond $1 !^(index.php|public|images|robots.txt|css|favicon.ico)
RewriteRule ^(.)$ index.php/$1 [QSA,L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ทำให้ มีปัญหาหรือเปล่าครับ
config https
lancaster Mon, 22/09/2014 - 21:41
config https ถูกต้องรึเปล่าครับ ลองเช็คดูครับ
http://www.digicert.com/help/
ถูกต้องนะครับผม DNS resolves
Detective Mon, 22/09/2014 - 21:50
ถูกต้องนะครับผม
DNS resolves 'www.clubzateam.com' to 183.90.173.149
SSL certificate
Common Name = www.clubzateam.com
Subject Alternative Names = www.clubzateam.com, clubzateam.com
Issuer = COMODO RSA Domain Validation Secure Server CA
Serial Number = 351FD3B441D875D1F5A9CDAEE04FE2A1
SHA1 Thumbprint = 22CE3C87126AE5DC2D28B3C82575B6F924055292
Key Length = 2048 bit
Signature algorithm = SHA256 + RSA (excellent)
Secure Renegotiation: Supported
This certificate does not use a vulnerable Debian key (this is good)
SSL Certificate has not been revoked
OCSP Staple:
OCSP Origin:
CRL Status:
SSL Certificate expiration
The certificate expires September 10, 2019 (1814 days from today)
Certificate Name matches www.clubzateam.com
Subject www.clubzateam.com
Valid from 11/Sep/2014 to 10/Sep/2019
Issuer COMODO RSA Domain Validation Secure Server CA
SSL Certificate is correctly installed
Congratulations! This certificate is correctly installed.
ผมลองเข้าไปใน
mix5003 Tue, 23/09/2014 - 07:35
ผมลองเข้าไปใน www.clubzateam.com เจอ
<meta name="robots" content="index,nofollow">เอาออกนะครับ ไม่งั้น bot ไม่เก็บ
Edit อ่านอีกที มันอาจจะเก็บ แต่แค่หน้าแรก เพราะ nofollow มันไม่ตามลิงค์ในหน้านั้น
ลงทะเบียนใหม่หรือยังครับ ปกติ
overbid Tue, 23/09/2014 - 08:31
ลงทะเบียนใหม่หรือยังครับ ปกติ google จะมองเป็น url ใหม่ครับถ้ามีการเปลี่ยน http เป็น https ถ้าปล่อยไว้สักเดือน 2 เดือนก็จะมีการทำ index ปกติครับ
ขอบคุณครับ
Detective Tue, 23/09/2014 - 10:44
ขอบคุณครับ
nofollow ไม่เกี่ยว htaccess
pwblog Sun, 28/09/2014 - 12:30
nofollow ไม่เกี่ยว
htaccess แก้ไขถูกจุดแล้ว
ไป webmaster tool ลบเว็บเก่าออก แล้วใส่ url https เข้าไป ส่ง sitemap ใหม่ จากนั้นไปตั้งค่าแก้ไข sql เปลี่ยนให้เป็น url แบบ https ทั้งหมด ไม่ว่าจะเป็นลิงก์รูปภาพด้วย แบบนี้เปลี่ยน 100%