• 26-09-2017, 18:54:04
    #1
    Merhaba;

    http'den https'ye(Cloudflare Full SSL) geçiş yapacağım ama bir türlü düzgün yönlendiremedim internette bulduğum çeşitli kuralları da denesem olmuyor birden fazla 301 yönlendirmesi oluyor
    benim tek isteğim aşağıdaki örnekteki gibi hangi şekilde yazarsa yazılsın tek 301'de sitemin https://www. şekline yönlenmesi.

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

    İstenilen yönlendirme.

    http://example 301 -> https://www.example
    https://example 301 -> https://www.example
    http://www.example 301 -> https://www.example
    https://www.example 200

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

    Hemen hemen nette bulduğum bir çok kural bu şekilde yönleniyor ama ben yukarıdaki gibi düzgün yönlendirmek istiyorum..

    peş peşe yönlendiriliyor = http://example 301 -> https://example 301 -> http://www.example -> https://www.example 200

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

    Ücretli yada Ücretsiz Yardımlarınız Bekliyorum.
  • 27-09-2017, 23:38:04
    #2
    Arayış devam ediyor
  • 28-09-2017, 10:32:31
    #3
    https://www.zulfumehmet.com/cloudfla...s-yonlendirme/ bu makaleyi incelediniz mi?. Sitedeki linklerinizi https olarak düzeltiniz yada linkleri //www.siteadi.com şeklinde düzenleyiniz.
  • 28-09-2017, 23:56:08
    #4
    ahmet
    @Azrael;
    hocam dün mobilde görmüştüm cevap veremedim, eski bir sitede kullanıyodum dizinleri ve urlleri değiştirirsen çalışır
        server {
            server_name  reoxgame.com www.reoxgame.com;
            if ($http_host = "reoxgame.com") {
                rewrite ^(.*) https://www.reoxgame.com$request_uri? permanent;
            }
                    if ($http_host = "reoxgame.com") {
                rewrite ^(.*) https://www.reoxgame.com$request_uri? permanent;
            }
            location / {
                root   /home/bumuoada/public_html;
                index index.php index.html index.htm;
            }
            error_page  404              /404.html;
            location = /404.html {
                root   /home/bumuoada/public_html;
            }
            # redirect server error pages to the static page /50x.html
            #
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   /home/bumuoada/public_html;
            }
            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            #
            location ~ \.php$ {
                root           /home/bumuoada/public_html;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /home/bumuoada/public_html$fastcgi_script_name;
                include        fastcgi_params;
            }
        }
        
                server {
           listen 80;
           rewrite ^(.*) https://www.reoxgame.com$request_uri? permanent;
     }
  • 29-09-2017, 03:32:20
    #5
    wehwet adlı üyeden alıntı: mesajı görüntüle
    https://www.zulfumehmet.com/cloudfla...s-yonlendirme/ bu makaleyi incelediniz mi?. Sitedeki linklerinizi https olarak düzeltiniz yada linkleri //www.siteadi.com şeklinde düzenleyiniz.
    ilginiz için teşekkürler hocam ama CF üzerinden yönlendirme yapmak istemedim bu yüzden direk kendi sunucumdan yönlendirme yapmak istedim


    Reox adlı üyeden alıntı: mesajı görüntüle
    @Azrael;
    hocam dün mobilde görmüştüm cevap veremedim, eski bir sitede kullanıyodum dizinleri ve urlleri değiştirirsen çalışır
        server {
            server_name  reoxgame.com www.reoxgame.com;
            if ($http_host = "reoxgame.com") {
                rewrite ^(.*) https://www.reoxgame.com$request_uri? permanent;
            }
                    if ($http_host = "reoxgame.com") {
                rewrite ^(.*) https://www.reoxgame.com$request_uri? permanent;
            }
            location / {
                root   /home/bumuoada/public_html;
                index index.php index.html index.htm;
            }
            error_page  404              /404.html;
            location = /404.html {
                root   /home/bumuoada/public_html;
            }
            # redirect server error pages to the static page /50x.html
            #
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   /home/bumuoada/public_html;
            }
            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            #
            location ~ \.php$ {
                root           /home/bumuoada/public_html;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /home/bumuoada/public_html$fastcgi_script_name;
                include        fastcgi_params;
            }
        }
        
                server {
           listen 80;
           rewrite ^(.*) https://www.reoxgame.com$request_uri? permanent;
     }
    Çok teşekkür ederim hocam ilgili kodları aradan tırnaklayarak kendi conf dosyama uyguladım ve tam istediğim gibi sorunsuz yönleniyor : )