Merhaba site php özel script. 301 yönlendirmesi var htaccces ile ancak www ile siteye verilmiş linkler var, buralardan gelenlerde www yi kaldırmadan açılıyor site halen.

Şu an anadizindeki htacces deki kod

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ https://ithalpastamalzemeleri.com %{REQUEST_URI} [NS,R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)*$ index.php?d1=$1 [L]
IndexIgnore *


order allow,deny
allow from all


deny from 85.98.21.81
deny from 88.243.159.49
deny from 37.120.223.19
deny from 172.116.1.12
deny from 77.111.247.180
deny from 77.111.247.64
deny from 31.223.28.20
deny from 77.111.245.13


RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.ithalpastamalzemeleri.com [NC]
RewriteRule ^(.*)$ https://ithalpastamalzemeleri.com/ $1 [L,R=301,NC]