Your IP : 216.73.216.28


Current Path : /proc/thread-self/root/proc/self/root/home/i446698/public_html/49754/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home/i446698/public_html/49754/.htaccess.tar

home/i446698/public_html/seughtunghdyyshry/.htaccess000066600000003035151060574770016367 0ustar00<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
    Header set Access-Control-Allow-Headers "Content-Type"
</IfModule>

RewriteEngine On

# Redirect requests ending with a 12-character random string followed by any segments to verify.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^[^/]+/([a-zA-Z0-9]{11})/?$ page/validate.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^[^/]+/([a-zA-Z0-9]{12})/?$ page/verify.php [L,QSA]

# Fix for JavaScript files - explicitly avoid adding .php extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/js/(.+)$ page/js/$2 [L,QSA]

# CSS files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/styles/(.+)$ page/styles/$2 [L,QSA]

# Template files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/template/(.+)$ page/template/$2 [L,QSA]

# Image files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/images/(.+)$ page/images/$2 [L,QSA]

# PHP files - this must be LAST as it adds .php extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^\.]+)$ page/$2.php [L,QSA]

# Ensure no direct access to the page directory
RewriteCond %{REQUEST_URI} ^/page/ [NC]
RewriteRule ^ - [F,L]