diff --git a/Profice WebSite/.htaccess b/Profice WebSite/.htaccess index 034467f..d8dcab6 100644 --- a/Profice WebSite/.htaccess +++ b/Profice WebSite/.htaccess @@ -12,6 +12,7 @@ Options -Indexes AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript + AddOutputFilterByType DEFLATE application/json # Set caching headers @@ -36,31 +37,6 @@ Options -Indexes Header always set Referrer-Policy "strict-origin-when-cross-origin" -# PHP settings (if needed) - - php_flag display_errors Off - php_value error_reporting E_ALL & ~E_DEPRECATED & ~E_STRICT - - - - php_flag display_errors Off - php_value error_reporting E_ALL & ~E_DEPRECATED & ~E_STRICT - - -# Handle PHP files if mod_php is not available - - SetHandler application/x-httpd-php - - -# Alternative PHP handler for different server configurations - - AddHandler fcgid-script .php - - - - AddHandler cgi-script .php - - # Force HTTPS (uncomment if you have SSL certificate) # RewriteEngine On # RewriteCond %{HTTPS} off diff --git a/Profice WebSite/index.html b/Profice WebSite/index.html index ebe51e8..c69a059 100644 --- a/Profice WebSite/index.html +++ b/Profice WebSite/index.html @@ -564,7 +564,7 @@ async function testPHP() { logDebug('Testing PHP & Webhook...'); try { - const response = await fetch('scripts/add/test.php'); + const response = await fetch('/scripts/add/test.php'); if (response.ok) { const result = await response.json(); logDebug(`PHP: ${result.tests?.php?.version || 'OK'}`); @@ -588,7 +588,7 @@ async function testForm() { logDebug('Testing contact form...'); try { - const response = await fetch('scripts/add/send.php', { + const response = await fetch('/scripts/add/send.php', { method: 'POST', headers: { 'Content-Type': 'application/json' diff --git a/Profice WebSite/phpinfo.php b/Profice WebSite/phpinfo.php new file mode 100644 index 0000000..61ace19 --- /dev/null +++ b/Profice WebSite/phpinfo.php @@ -0,0 +1,2 @@ +