Answer the question
In order to leave comments, you need to log in
How to route all requests to a subdirectory?
Good day!
There is a code that should, in theory, route all requests to a subdirectory public
:
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [QSA,L]
public
, and also close all files outside this directory for access. But something doesn't go according to plan :) 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