Answer the question
In order to leave comments, you need to log in
How to change the value in the address bar?
There is an address of the site www.site.com The
physical address to the root folder of the site on the server /var/www/site
There are three folders nested one, two and three. (/var/www/site/one/two/three)
In the three folder is index.php
How do I write a RewriteRule so that when accessing www.site.com/one
, the
file opens at /var/www/site/one/two /three/index.php
At the same time, the value in the address bar remained www.site.com/one
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteRule ^one/?$ /one/two/three/index.php [QSA,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question