Daha sonra üzerinde yoğunlaşmak üzere kurduğum xenforo forum sitemde son zamanlarda bazı tuhaf konular açılmıştı ve konuyu incelemek istediğimde 404 hatası alıyordum. Şimdi anasayfasında bile düz, basit bir şekilde "404: Not Found" hatası alıyorum.
Talebim; ilgili sorun giderilecek ve güvenlik anlamında tüm geliştirmeler yapılmalıdır.
XenForo Profesyonel Destek ALINACAK
4
●126
- 21-04-2026, 11:03:22.htaccess içeriğini geçmişte yaşadığım bir sorundan ötürü yapay zeka ile düzenlemişim galiba, böyle birşeyi hiç hatırlamıyorum ancak aylardır sorun yaşamıyordum. En son geçen hafta web sitemi kontrol etmiştim.SrdL adlı üyeden alıntı: mesajı görüntüle
.htaccess içeriği şu şekilde:
# XenForo için Güncellenmiş .htaccess Dosyası # API sorunu çözümü için güncellenmiş Redirect 301 /yardim/sartlar-ve-kurallar/ /help/sartlar-ve-kurallar/ Redirect 301 /yardim/terms/ /help/sartlar-ve-kurallar/ Redirect 301 /yardim/smilies/ /help/smilies/ # ModSecurity'yi devre dışı bırak (API POST istekleri için) <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 # LiteSpeed XenForo cache <IfModule litespeed> CacheLookup public on RewriteEngine On # cache RewriteCond %{HTTP_COOKIE} !(xf_lscxf_logged_in|xf_user|xf_session_admin) [NC] RewriteCond %{REQUEST_URI} !/install/ [NC] RewriteRule .* - [E=Cache-Control:max-age=360,E="cache-vary:xf_style_id,xf_language_id"] # no cache RewriteCond %{HTTP_COOKIE} (xf_lscxf_logged_in|xf_user|xf_session_admin) [NC] RewriteRule .* - [E=Cache-Control:vary=loggedin,E=Cache-Control:no-cache] </IfModule> <IfModule mod_rewrite.c> RewriteEngine On # HTTP Basic auth düzeltmesi RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # HTTPS yönlendirmesi RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # ÖNEMLİ: API istekleri için özel kural (ChatGPT önerisi) RewriteRule ^api/.*$ index.php [QSA,L] # Mevcut dosyalar için kontrol RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Statik dosyalar RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L] # Tüm diğer istekleri index.php'ye yönlendir RewriteRule ^.*$ index.php [NC,L] </IfModule> - 21-04-2026, 11:19:14Bendekiler aşağıdaki gibi
# 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 %{SERVER_PORT} !=443
RewriteRule ^ https://www.siteadi.org%{REQUEST_URI} [NS,R,L]
RewriteCond %{HTTP_HOST} ^siteadi.org [NC]
RewriteRule ^(.*)$ https://www.siteadi.org/$1 [L,R=301,NC]
# 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
# Set the ea-php82 package as the default PHP programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit