RewriteEngine On

RewriteRule .* - [E=verifycaptcha]
# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
RewriteBase /
ErrorDocument 404 /404.php



# handle 404 for english version
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{THE_REQUEST} ^.*/en
RewriteRule . /en/404.php [L]

# handle 404 for french version
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{THE_REQUEST} ^.*/fr
RewriteRule . /fr/404.php [L]

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.teknikterminoloji.com/$1 [R=301,L]
# RewriteCond %{HTTP_HOST} ^teknikterminoloji.com
# RewriteRule (.*) http://www.teknikterminoloji.com/$1 [R=301,L]
# RewriteCond %{HTTP_HOST} ^teknikterminoloji.com
# RewriteRule (.*) https://www.teknikterminoloji.com/$1 [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 /index-fr.php /fr/index.php
Redirect 301 /about-us-fr.php /fr/about-us.php
Redirect 301 /categories-fr.php /fr/categories.php
Redirect 301 /contact-fr.php /fr/contact.php
Redirect 301 /converter-fr.php /fr/converter.php
Redirect 301 /terms-of-use-fr.php /fr/terms-of-use.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 /index-en.php /en/index.php
Redirect 301 /about-us-en.php /en/about-us.php
Redirect 301 /categories-en.php /en/categories.php
Redirect 301 /contact-en.php /en/contact.php
Redirect 301 /converter-en.php /en/converter.php
Redirect 301 /terms-of-use-en.php /en/terms-of-use.php
#google search console daki hataya karsi 14.02.2021 de yazilan kod start
Redirect 301 /blog /404.php 
#google search console daki hataya karsi 14.02.2021 de yazilan kod end
#26.09.2019 deneme start
# Redirect 301 /content/ /?search=content
#26.09.2019 deneme end
</IfModule>
# 10.01.2020 deneme start 
Redirect 301 https://www.teknikterminoloji.com/content/ https://www.teknikterminoloji.com/?search=content
# 10.01.2020 deneme end
Deny from 114.119
Deny from 5.9
Deny from 54.36
Deny from 216.244
Deny from 192.99

RewriteCond %{HTTP_REFERER} !^http://teknikterminoloji.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://teknikterminoloji.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.teknikterminoloji.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.teknikterminoloji.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://teknikterminoloji.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://teknikterminoloji.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.teknikterminoloji.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.teknikterminoloji.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
# 13.11.2025 update
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Googlebot [NC]
RewriteCond %{REMOTE_HOST} !googlebot\.com$ [NC]
RewriteRule .* - [F,L]
