N
N
Natapr02015-02-27 14:14:09
PHP
Natapr0, 2015-02-27 14:14:09

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

1 answer(s)
D
Dmitry Entelis, 2015-02-27
@DmitriyEntelis

RewriteEngine On
RewriteRule ^one/?$ /one/two/three/index.php [QSA,L]

obviously

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question