Sabit Ssl kurulum sonrası yapılması gereken ayarlar

Hoşgeldiniz
Çözümler ve hizmetlerimizden yararlanmak için kayıt olabilirsiniz.
Kayıt Ol

tyofen

Üye
28 Eki 2017
12
1
33
Kod:
RewriteOptions inherit
# 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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# 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=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/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]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.teknoceri.com/$1 [R,L]
### 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
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
 
Admin

Admin

yilmaz70
Yönetici
13 Mar 2017
207
49
İstanbul
wpyukle.com
Öncelikle, en altta bulunan RewriteEngine On kodu kaldırıldı.

Daha sonra aşağıdaki kod Server Port 80 yerine konuldu.

Kod:
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ https://www.teknoceri.com%{REQUEST_URI} [NS,R,L

Problem çözülmüştür, hayırlısı olsun :)
 
  • Like
Tepkiler: tyofen

benimo

Üye
13 Mar 2019
18
3
44
www olmadan siteyi açmak istiyorsanız .htaccess koduna aşağıdakini yazınız.


RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www.siteadresiniz\.com [NC]
RewriteRule ^(.*)$ https://siteadresiniz.com/$1 [L,R=301]


https://www.siteadresiniz.com >>> https://siteadresiniz.com
siteadresiniz.com >>> https://siteadresiniz.com
http://www.siteadresiniz.com >>> https://siteadresiniz.com
http://siteadresiniz.com >>> https://siteadresiniz.com

hertürlü girilen url "https://siteadresiniz.com" şeklinde olacaktır.

-------------------------------------------


Eğer tam tersini yani www olarak siteyi açtırmak istiyorsanız aşağıdaki işlemi yapın.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^siteadresiniz\.com [NC]
RewriteRule ^(.*)$ https://www.siteadresiniz.com/$1 [L,R=301]


http://siteadresiniz.com >>> https://www.siteadresiniz.com
https://siteadresiniz.com >>> https://www.siteadresiniz.com
http://www.siteadresiniz.com >>> https://www.siteadresiniz.com
siteadresiniz.com >>> https://www.siteadresiniz.com


Eğer ki googlede can çekişen dostlar olursa aramaya "www olmadan siteye giriş yapma" yada "opencart www kullanımı" diyerek bu sayfayı bulabilirler. Bunuda yazdıktan sonra konuyu bitirmek icap eder. go-opencart.com sitesi iyidir hoştur. kalitelidir. takip edin.