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ü Forumda 3 tane .htaccess dosyası var bu normal mi?

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

Çözüldü Forumda 3 tane .htaccess dosyası var bu normal mi?

Normal değil. Hadi oldu diyelim sunucu hangisine öncelik verecek bilemeyiz. Bu da sunucuda sorunlara neden olabilir. Ana dizinde aşağıdaki .htaccess içeriğinin olduğu dosyanın olması yeterli.

NGINX:
#    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...
Normal değil. Hadi oldu diyelim sunucu hangisine öncelik verecek bilemeyiz. Bu da sunucuda sorunlara neden olabilir. Ana dizinde aşağıdaki .htaccess içeriğinin olduğu dosyanın olması yeterli.

NGINX:
#    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>
 
Çözüm
Normal değil. Hadi oldu diyelim sunucu hangisine öncelik verecek bilemeyiz. Bu da sunucuda sorunlara neden olabilir. Ana dizinde aşağıdaki .htaccess içeriğinin olduğu dosyanın olması yeterli.

NGINX:
#    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>
diğer dosyaları silersem sorun olurmu?
 
diğer dosyaları silersem sorun olurmu?
Normal değil. Hadi oldu diyelim sunucu hangisine öncelik verecek bilemeyiz. Bu da sunucuda sorunlara neden olabilir. Ana dizinde aşağıdaki .htaccess içeriğinin olduğu dosyanın olması yeterli.

NGINX:
#    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>
biri .htaccess diğeri .htaccess.txt diğeride libary libarary klasörünün içinde peki hangisini silmem lazm fark edermi?
 
hepsini sildim 1 tane bıraktım içinde olan kod bu normalmi?
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>

# Error Pages
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}]

    # If the requested file or directory exists, do not apply any further rules.
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Exclude specific directories and files from rewriting.
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [L]

    # For all other requests, rewrite to index.php
    RewriteRule ^.*$ index.php [L]
</IfModule>
 
biri .htaccess diğeri .htaccess.txt diğeride libary libarary klasörünün içinde peki hangisini silmem lazm fark edermi?
htaccess.txt hariç hiçbirini silmeyin.

Library içindeki .htaccess orjinal dosyadır silmeyin.

htaccess.txt xenforo ile gelen varsayılan htaccess dosyasıdır. txt uzantılı olduğu için sisteme hiçbir etkisi yoktur. Sonundaki txt i silip .htaccess şekline getirirseniz etkin olur.
 
ana dizinde sadece bir tane .htaccess olmalı bu ısmı ve uzantısı da bu sekılde olmalı .htaccess doğru .htaccess ıcerıgını arkadaslar vermıs zaten, bu gibi ıslemler de .htaccess dosyasını download etip .htaccess.txt yapıp yedekleyerek deneme yanılma yonltemı ıle sonuca gidebılırsınız.
 
htaccess.txt hariç hiçbirini silmeyin.

Library içindeki .htaccess orjinal dosyadır silmeyin.

htaccess.txt xenforo ile gelen varsayılan htaccess dosyasıdır. txt uzantılı olduğu için sisteme hiçbir etkisi yoktur. Sonundaki txt i silip .htaccess şekline getirirseniz etkin olur.
Çok geç hocam şuan sadece ana dizinde .htaccess var ama dosyaları yesskledim diğerini geri yükliyimmi?
 
Hocam şuanda sitemde bir adet ama dizinde buluna . htaccess bulunuyor eskisini tekrar yüklemem gereklimi ?
 

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.