Options +FollowSymLinks
# Enable gzip compression
<IfModule mod_deflate.c>
  <FilesMatch "\.(html|css|js|xml|json|txt|php)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>
# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# Enable browser caching
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
</IfModule>

# Enable ETag removal
<IfModule mod_headers.c>
  Header unset ETag
</IfModule>
FileETag None

# Enable cache control headers
<IfModule mod_headers.c>
  Header set Cache-Control "max-age=31536000, public"
</IfModule>

# Set cache control for fonts
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|otf|woff|woff2)$">
    Header set Cache-Control "max-age=31536000, public"
  </FilesMatch>
</IfModule>

# Set cache control for images
<IfModule mod_headers.c>
  <FilesMatch "\.(jpg|jpeg|png|gif|ico)$">
    Header set Cache-Control "max-age=31536000, public"
  </FilesMatch>
</IfModule>

# Disable server signature
ServerSignature Off






RewriteEngine On

# Remove .php extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/?$ $1.php [L]

# Redirect /tool.php to /tool
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.+)\.php
RewriteRule ^ /%1 [R=301,L]



RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]





RewriteEngine On

# Replace 'seokit\.codehippo\.net' with your actual domain
RewriteCond %{HTTP_HOST} !^18\.codehippo\.net$ [NC]

# Replace '12345678' with your security key
RewriteCond %{QUERY_STRING} !^security=12345678$

RewriteRule ^ - [F]
