Python flask app routing in cpanel: can only access root url

Add the following rules to your .htaccess in the directory of your application url

RewriteEngine on  
RewriteRule ^http://%{HTTP_HOST}%{REQUEST_URI} [END,NE]

that solved this issue for me

Leave a Comment