Answer the question
In order to leave comments, you need to log in
Apache .htaccess configuration Main directory
There is a folder with a PHP project.
The structure is as follows:
How to fill in .htaccess so that Apache processes the request domain.name/test/ in such a way that it transfers control to the /entries/test script
Accordingly, the server root should be addressed to /entries/index.php
Answer the question
In order to leave comments, you need to log in
Try this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/entries
RewriteRule (.*) /entries/$1 [L]
I don't know how correct this is, but I would somehow do
RewriteRule ^([^/]*)?$ /entries/test$1 [NC] [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question