Merhaba arkadaşlar,
Search console baktığımda linklerim bir hata sonucu domain.com/urun-adi olmuş.
Benim url yapım ise domain.com/urun-adi/ şeklinde yani sonunda "/" işareti var.
Bu yüzden 404 hatası vermiş tüm linkler.
Htaccess ile urun-adi ile gelen linkleri urun-adi/ şeklinde açılmasını nasıl sağlarım?
Şu anda web sitemde tüm urller / şeklinde çalışıyor fakat google indexlerim yönlensin istiyorum linkler oturana kadar.
.htaccess kodlarım bu şekilde;
### Mod Rewrite Kuralları ###
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
### HTTPS ve www ile yönlendirme ###
RewriteCond %{HTTP_HOST} ^*******.com.tr [NC]
RewriteRule ^(.*)$ https://www.*********.com.tr/$1 [R=301,NC]
### SSL Yönlendirme ###
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
# php -- BEGIN cPanel-generated handler, do not edit
# Set the ea-php74 package as the default PHP programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit