JosephSilber / page-cache

Caches responses as static files on disk for lightning fast page loads.
MIT License
1.21k stars 118 forks source link

Website Url /page-cache/pc__index__pc.html #34

Closed ruzgarhasan closed 5 years ago

ruzgarhasan commented 5 years ago

I can also access page-cache / link. is there a way not to be reached?

Example; github.com/page-cache/pcindexpc.html

must be github.com/

Note:apache .htaccess

JosephSilber commented 5 years ago

Add a redirect match to the page-cache directory in your.htaccess file:

RedirectMatch 404 ^/page-cache
ruzgarhasan commented 5 years ago

Thank yo 👍

RedirectMatch 301 ^/page-cache/(.*)\.html$ /$1