Neler yeni

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

  • Forumdan daha fazla yararlanmak için, profilinizi telefon numaranız 📱 ile doğrulayın ve daha ayrıcalıklı olun 😉
    Daha fazla bilgi!

Çözüldü Xenforo 2 404 Hatası

Bu sorun verilen destek sayesinde çözüme ulaştırılmıştır.

Expecto

Kullanıcı
Kullanıcı
Katılım
22 Mar 2019
Mesajlar
7
Merhaba,
Xenforo 2.1.1 kullanıcısıyım. Aşağıdaki sorun nedeni ile buradaki işlemleri uygulamadım ancak bu sefer de 404 sayfası çıkıyor forum sayfalarına girmek istediğimde.

İlgili sorun,
www.siteadı.com şeklinde giriş yaptığımda ssl'nin aktfi olmadığını gördüm, ancak siteadı.com şeklinde giriş yaptığımda ssl'nin aktif olduğunu görüyorum.

.htaccess içeriğim şağıdaki gibidir.
Kod:
#    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 ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
 
Merhabalar E Expecto ;

Sitenizin Kullanımı www şekilde yada www olmadan(non www) hangi şekilde ise htaccess dosyanıza eklenen
kod yapısınında aynı şekilde olması gerekmekte bir iki örnek yapıyı paylaşayım.

SSL Aktif www bağlantılarını www olmayacak şekilde ayarlar: (https://test.com)

Kod:
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

SSl olmayan yapıyı SSL' şekilde ve www olarak ayarlar (http://test.com > https://www.test.com)


Kod:
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
 
Teşekkür ederim, deneyip sonucu paylaşacağım.

Edit:
LaDezs LaDezs teşekkür ederim. Sorunun kaynağına nokta atış çözüm oldu.
 
Son düzenleme:

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.