Merhaba,
Sitemde iki değişiklik yaptım, ilki kategorilerde
abc.com/category/elma
şeklindeki ur'yi.
abc.com/elma
şekline dönüştürdüm, ve güncel htaccess'imi şu hâlden:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
şu hâle dönüştürdüm:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^category/(.*) http://abc.com/$1 [R=301,L]
</IfModule>
ama fayda etmedi.
Güncelleme: Bu sorunu
no category base html eklentisi ile çözdüm.
Bir diğer sorumsa
Güncel yazı yolum şöyleydi:
http://abc.com/yil/ay/konu-ismi/
şuna dönüştürdüm:
http://abc.com/konu-ismi.html
eski url'leri yeni url'lere yönlendirmek adına htaccess'i de şu halde düzenledim ama yine bir yerlerde hatam var.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^category/([a-z/.]+)$ $1 [R=301,L]
RewriteRule ^[0-9]{4}/[0-9]{2}/([^.]+)\ http://abc.com/$1.html [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Bu durumu nasıl düzeltebilirim?
olmadı şunu denedim hani html'den vazgeçtim
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^category/([a-z/.]+)$ $1 [R=301,L]
RewriteRule ^([0-9]{4})/([^/]+)/?$ http:/abc.com/$2/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
olmadı yine. Benim htaccess'i mi görmüyor acaba yoksa başka bir yerde mi hatam anlamadım.