phprouter / main

Secure router with XSS and CSRF
MIT License
514 stars 143 forks source link

How do I add absolute paths? #27

Closed ghost closed 2 years ago

ghost commented 2 years ago

How do I add absolute paths so that I can identify the images and files inside the public folder, where they contain the CSS, JS and img?

VRXT commented 2 years ago

Hello, @stevenhau

The File ".htaccess" lets you pass through the router so you need to make sure you have a valid path

image

you can fix this by creating a folder "assets" on the root path

image

image

Is this what you mean?

phprouter commented 2 years ago

The .htaccess file allows direct access to static files like .js and .css