• 02-03-2022, 02:58:36
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba, xenforo tabanlı sitemi https ye yönlendirmek istiyorum lakin .htacces dosyası yok.
    Gizli klasörleri gösteri aktif ettim lakin yok, bu sorunu nasıl çözebilirim. Ve hangi kod eklenmeli?
  • 02-03-2022, 03:07:23
    #2
    .htaccess dosyası kesin olarak yok diyorsan ftp bağlanıp ".htaccess" adında dosya oluştur ve aşağıdaki kodu ekle ardından gerekli SSL ayar kodlarını ekle ondan sonra tamamdır.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php[L]
    </IfModule>
  • 02-03-2022, 03:08:37
    #3
    Kurumsal PLUS
    Kolay gelsin, HTTPS için, siteadresi.com/admin.php giriş yapın ardından forum ayarlarınızdan url adresinizin başına HTTPS yazın kendisi yönlendir, htaccess için ise kodu aşağıya bıraktım.


    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    <IfModule mod_security.c>
        SecFilterEngine Off
        SecFilterScanPOST Off
    </IfModule>
    
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
    
        #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
    # php -- BEGIN cPanel-generated handler, do not edit
    # “ea-php74” paketini varsayılan “PHP” programlama dili olarak ayarlayın.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
  • 02-03-2022, 03:09:17
    #4
    Wordpress
    .htaccess dosyasını publichtml dizinine oluşturup, aşağıdaki kodları yapıştırıp kaydededersen sorun kalkmış olacak;

    RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
  • 02-03-2022, 08:31:15
    #5
    Sunucunuza FTP üzerinden bağlantı kurun .htaccess dosyası yok ise aşağıdaki gibi oluşturun. Aşağıdaki kod hem xenforo varsayılanı + hem de ssl için gerekli yönlendirmeye sahiptir

    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
    
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTPS} off
        RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
    
        #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
  • 02-03-2022, 08:33:24
    #6
    shentaweb adlı üyeden alıntı: mesajı görüntüle
    .htaccess dosyasını publichtml dizinine oluşturup, aşağıdaki kodları yapıştırıp kaydededersen sorun kalkmış olacak;

    RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    80 port hata aldırıyor. Wordpress üzerinde xenforo'da da aldırdı geçen, kodu denemeden mi? arkadaşa verdiniz?
  • 02-03-2022, 14:58:57
    #7
    Wordpress
    Nookta adlı üyeden alıntı: mesajı görüntüle
    80 port hata aldırıyor. Wordpress üzerinde xenforo'da da aldırdı geçen, kodu denemeden mi? arkadaşa verdiniz?
    Daimi kullandığım koddur. Yaklaşık 40 50 sitede kullandım. Siz hata alıyorsunuz diye herkes mi hata alacak. Düşünemediniz mi ?
  • 02-03-2022, 15:13:01
    #8
    shentaweb adlı üyeden alıntı: mesajı görüntüle
    Daimi kullandığım koddur. Yaklaşık 40 50 sitede kullandım. Siz hata alıyorsunuz diye herkes mi hata alacak. Düşünemediniz mi ?
    agresif cevap vermeniz neden? kod çalışıyorsa bizde kullanalım o suretle yazdım. Ama yazma üslubunuz düşüncenizi nasıl kullandığınızı gösteriyor. Yine de teşekkürler. Kod için.
  • 02-03-2022, 15:15:41
    #9
    Wordpress
    Nookta adlı üyeden alıntı: mesajı görüntüle
    agresif cevap vermeniz neden? kod çalışıyorsa bizde kullanalım o suretle yazdım. Ama yazma üslubunuz düşüncenizi nasıl kullandığınızı gösteriyor. Yine de teşekkürler. Kod için.
    O kadar net, o kadar kesin konuştunuz ve herşeyi bilmiş gibi konuştunuz ki, bende ona istinaden hak ettiği üslup ile cevabımı iletmiş oldum. Beni tanıyan iyi tanıyor. Kimseye karşı kolay kolay saygısızlık yapıp üslubumu bozmadım ki burada da bir saygısızlık veya üslup bozukluğu göremiyorum. Münakaşaya gerek yok. İyi çalışmalar