visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

correct 404-settings for subfolders #528

Open ghost opened 5 years ago

ghost commented 5 years ago

Using these .htaccess entries

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^.*$ ./index.html

and this 404-router-setting '*': 'notfound404',

oriented by this example: https://github.com/visionmedia/page.js/blob/master/examples/enterprisejs/index.html

Navigating to url/folder_anyname/subfolder_anyname causes a reloading loop. How can I direct calls like this to the 404-page like it works for folders url/folder_anyname please ?