ใช้ codeignitor ตอนแรก ก็ index ดีอยู่
พอดี ติดตั้ง SSL เปลี่ยนเวบเป็น https
ทีนี้ google ไม่ค่อย index อะไรเวบเลย แก้ไขยังไงดีครับ
ตอนนี้สั่ง 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"
</IfModule>