B
B
Bestolkovy2016-08-22 09:23:21
Apache HTTP Server
Bestolkovy, 2016-08-22 09:23:21

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]

Gives an error message.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question