Configuring Apache .htaccess Main directory

0 like 0 dislike
5 views
There is a folder with a PHP project.
The structure is this:
image

How to fill out .htaccess if Apache has processed the request domain.name/test/ so that it passed control to the script /entries/test

Accordingly, the root servers should be addressed to /entries/index.php
by | 5 views

3 Answers

0 like 0 dislike
Try this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/entries
RewriteRule (.*) /entries/$1 [L]
by
0 like 0 dislike
Don't know if this is correct, but I would like something made
RewriteRule ^([^/]*)?$ /entries/test$1 [NC] [L]
by
0 like 0 dislike
Alias /test "/path/to/site_root_directory/entries/test"
by

Related questions

110,608 questions
257,186 answers
0 comments
28,876 users