[ .htaccess Yönlendirme Jeneratörü ]

Arama motorlarının sitenizi tek ve doğru bir adreste görmesi (Canonicalization) için gerekli Apache sunucu yönlendirmelerini oluşturun.

Temel Kurallar

Özel 301 Yönlendirmesi (Redirect)

.htaccess Dosyası İçeriği
<IfModule mod_rewrite.c>
RewriteEngine On

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

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

# 301 Custom Redirect
Redirect 301 /eski-sayfa.html /yeni-sayfa

</IfModule>

Apache Sunucu ve Htaccess Yapılandırma Rehberi

Sitenizin kök dizininde saklanan .htaccess dosyasının gücünü keşfedin. Hotlink koruması, 301 yönlendirmeleri ve Cache stratejileri.

Sunucu Rehberini İncele