xxxxxxxxxx
#Instead, you should create an .htaccess file in your root like this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
xxxxxxxxxx
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
xxxxxxxxxx
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
xxxxxxxxxx
Options +FollowSymLinks -Indexes
RewriteEngine On
RewriteCond %{HTTP:Authorization}
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
xxxxxxxxxx
<IfModule mod_php7.c>
AddHandler application/x-httpd-php74 .php
</IfModule>
xxxxxxxxxx
import pandas as pd
import numpy as np
df['diff_days'] = (df['end_date'] - df['start_date']) / np.timedelta64(1, 'D')