Hoş Geldiniz! 👋

Tüm özelliklerimize erişmek için şimdi bize katılın. Kaydolup giriş yaptıktan sonra konu oluşturabilir, mevcut konulara yanıt gönderebilir, diğer üyelerinize itibar kazandırabilir, kendi özel mesajlaşma programınızı edinebilir ve çok daha fazlasını yapabileceksiniz. Aynı zamanda hızlı ve tamamen ücretsizdir, peki daha ne bekliyorsunuz?

Kayıt Ol

SEO Dostu URL yapısını kullan 404 hatası?

  • Konuyu Başlatan Konuyu Başlatan raccoon
  • Başlangıç tarihi Başlangıç tarihi

raccoon

Kayıtlı Üye
1
HBL RANK
Katılım
31 Mart 2025
Konular
52
Mesajlar
172
Çözümler
3
Reaksiyon puanı
74
Puanları
28
Konum
Türkiye
Cinsiyet
Erkek

SEO Dostu URL yapısını kullan - aktif ettiğim zaman forum ana sayfasında problem yok ama onun harici nereye tıklarsam 404 hatası vermekte.
 
Çözüm
.htaccess doyası var mı? Eğer .htaccess dosyası yok ise forumun kurulu olduğu dizine .htaccess adında bir dosya oluşturup içeriğine de aşağıda ki kodları ekleyerek deneyebilir misin?

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

    #    If you are having problems with the rewrite rules...
.htaccess doyası var mı? Eğer .htaccess dosyası yok ise forumun kurulu olduğu dizine .htaccess adında bir dosya oluşturup içeriğine de aşağıda ki kodları ekleyerek deneyebilir misin?

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

    #    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
.htaccess doyası var mı? Eğer .htaccess dosyası yok ise forumun kurulu olduğu dizine .htaccess adında bir dosya oluşturup içeriğine de aşağıda ki kodları ekleyerek deneyebilir misin?

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

    #    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>
.htaccess dosyası var attığınız ile değiştirdim yine aynı hata verdi.
 
.htaccess değilde htaccess.txt var
htaccess.txt değil .htaccess bu şekilde bir dosya olması gerekiyor. cPanel kullanıyorsan gizli olabilir Dosya yöneticisinde ayarlar butonuna tıklayarak Gizli dosyaları göster tikini aktif edebilirsin.

cpanel-gizli-dosyalari-gosterme.webp

Hala .htaccess adında bir dosya görünmediyse yukarıda dediğim gibi oluşturup içeriğini eklemen gerekiyor.
 
htaccess.txt değil .htaccess bu şekilde bir dosya olması gerekiyor. cPanel kullanıyorsan gizli olabilir Dosya yöneticisinde ayarlar butonuna tıklayarak Gizli dosyaları göster tikini aktif edebilirsin.

Ekli dosyayı görüntüle 716

Hala .htaccess adında bir dosya görünmediyse yukarıda dediğim gibi oluşturup içeriğini eklemen gerekiyor.
htaccess.txt dosyasına verdiğini kodu ekledim kayıt ettim, sonrasında Rename diyerek ismini .htaccess olarak değiştirip kayıt ettim şuan problem yok.
Gizli dosyalara baktığım zaman da gözüküyor .htaccess
 
htaccess.txt dosyasına verdiğini kodu ekledim kayıt ettim, sonrasında Rename diyerek ismini .htaccess olarak değiştirip kayıt ettim şuan problem yok.
Gizli dosyalara baktığım zaman da gözüküyor .htaccess
Tamamdır sorunun kaynağı .htaccess dosyasının olmamasından kaynaklanmış .txt uzantılı dosyanın adını düzeltince eklenmiş oldu.
 

Konuyu toplam 0 üye okuyor. (0 Kayıtlı üye ve 0 Misafir)

Geri
Üst