I
I
Ivan Sokhin2015-12-14 15:48:44
htaccess
Ivan Sokhin, 2015-12-14 15:48:44

How to refer to path in url with redirect?

I want to remove a folder from the path. those. to do so, I write in the url - site.com/modul , and this opens - site.com/modules/modul.php , and in the url it is visible as site.com/modul

Answer the question

In order to leave comments, you need to log in

1 answer(s)
�
Иван Сохин, 2015-12-14
@jarrro

RewriteEngine On 
RewriteBase / 
RewriteRule ^login$ modules/login.php [NC,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question