Answer the question
In order to leave comments, you need to log in
How to hide part of a string from a URL?
Good afternoon!
Tell me, please, how from the line of the form: http://site.ru/projects/aplication.php
Hide (just hide) the end /projects/aplication.php
?
So that the address bar is displayed simply http://site.ru
, so as not to burn the form handler file once again.
Tried like this:RewriteEngine On
RewriteRule ^(/projects/aplication.php)$ $1.php [NC]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question