# ===================================================================
# Redirect ads.txt for Ezoic Ads.txt Manager
# ===================================================================
Redirect 301 /ads.txt https://srv.adstxtmanager.com/19390/dailyhoroscope.org

<IfModule mod_rewrite.c>
    # Disable MultiViews to prevent content negotiation conflicts
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    ##
    ## Optional: Force HTTPS (uncomment if needed)
    ##
    # RewriteCond %{HTTPS} off
    # RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

    # ===================================================================
    # Skip Laravel routing for ads.txt so it doesn’t get overridden
    # ===================================================================
    RewriteCond %{REQUEST_URI} ^/ads\.txt$ [NC]
    RewriteRule ^ - [L]

    # ===================================================================
    # Redirect Trailing Slashes (SEO-friendly URLs)
    # ===================================================================
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ /$1 [L,R=301]

    # ===================================================================
    # Handle Front Controller (send everything else to index.php)
    # ===================================================================
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

# ===================================================================
# PHP Settings (cPanel Managed)
# ===================================================================
# BEGIN cPanel-generated php ini directives, do not edit
<IfModule php7_module>
   php_flag display_errors On
   php_value max_execution_time 300
   php_value max_input_time 600
   php_value max_input_vars 6000
   php_value memory_limit 256M
   php_value post_max_size 128M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 128M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value max_execution_time 300
   php_value max_input_time 600
   php_value max_input_vars 6000
   php_value memory_limit 256M
   php_value post_max_size 128M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 128M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# ===================================================================
# PHP Version Handler
# ===================================================================
# php -- BEGIN cPanel-generated handler, do not edit
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
