RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"


RewriteRule ^project-timeline/([a-zA-Z0-9.%&+=-]+)/$ project_details.php?project_id=$1 [QSA,L]
RewriteRule ^project-tasks/([a-zA-Z0-9.%&+=-]+)/$ project_tasks.php?project_id=$1 [QSA,L]
RewriteRule ^project-work-report/([a-zA-Z0-9.%&+=-]+)/$ project_workreport.php?project_id=$1 [QSA,L]
RewriteRule ^project-stats/([a-zA-Z0-9.%&+=-]+)/$ project_stats.php?project_id=$1 [QSA,L]
RewriteRule ^project-notes/([a-zA-Z0-9.%&+=-]+)/$ project_notes.php?project_id=$1 [QSA,L]
RewriteRule ^project-files/([a-zA-Z0-9.%&+=-]+)/$ project_files.php?project_id=$1 [QSA,L]
RewriteRule ^project-summary/([a-zA-Z0-9.%&+=-]+)/$ project_overview.php?project_id=$1 [QSA,L]

RewriteRule ^task/([a-zA-Z0-9.%&+=-]+)/([a-zA-Z0-9.%&+=-]+)/$ task_details.php?project_id=$1&task_id=$2 [QSA,L]


RewriteRule ^dashboard$ dashboard.php [QSA,L]
RewriteRule ^projects$ projects.php [QSA,L]
RewriteRule ^tasks$ tasks.php [QSA,L]
RewriteRule ^timeline$ timeline.php [QSA,L]
RewriteRule ^associates$ users.php [QSA,L]
RewriteRule ^reports$ reports.php [QSA,L]

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_flag display_errors On
   php_value max_execution_time 60
   php_value max_input_time 60
   php_value max_input_vars 2000
   php_value memory_limit 128M
   php_value post_max_size 60M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php84"
   php_value upload_max_filesize 50M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value max_execution_time 60
   php_value max_input_time 60
   php_value max_input_vars 2000
   php_value memory_limit 128M
   php_value post_max_size 60M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php84"
   php_value upload_max_filesize 50M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

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