Answer the question
In order to leave comments, you need to log in
How to configure routes to display files in codeigniter?
Good afternoon
There are doc files on the site that must be given to the user
File names are generated randomly
When you try to download such a file, the link looks something like this: www.sitename.com/file_name.doc
CODEIGNITER instead of giving the file shows 404, since there are no appropriate settings
What should be written in the routes?
The files themselves are not in the root of the site, but in the docs folder - which is in the root)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question