Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/styllloz/public_html/qa-include/qa-base.php on line 1175

Warning: session_start(): Cannot start session when headers already sent in /home/styllloz/public_html/qa-include/app/users.php on line 162

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/users.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/page.php on line 356
Configuring Apache .htaccess Main directory - code-flow.club | Q&A

Configuring Apache .htaccess Main directory


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 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 | 9 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
35,181 users