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ü .htaccess Dosyam Hk.

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

KansızKurt

xFanatik
Kullanıcı
Katılım
2 Nis 2018
Mesajlar
230
Selamlar , Xenforo 2 Orjinal .htaccess Dosyam'da Sıkıntı Var Mı?

PHP:
#    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 enable WebDAV editing with 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-php72” paketini varsayılan “PHP” programlama dili olarak ayarlayın.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Fazlalıklar Var İse Sadeleştirebilir Misiniz?
 
Cpanel üzerinden redirects alanından www. redirection seçenekleriyle yönlendirebilirsiniz ya da .htaccess üzerinden yönlendirebilirsiniz. Kodları aşağı ekledim. Not: Alanadiniz.com yerlerini kendi alan adınızla değiştirin.

www olarak yönlendir

Kod:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^alanadiniz.com [NC]
RewriteRule ^(.*)$ http://www.alanadiniz.com/$1 [L,R=301,NC]

www olmadan yönlendir.

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

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.