N
N
Nora2021-08-11 14:31:38
PHP
Nora, 2021-08-11 14:31:38

How to remove .php at the end of the address of each web page of the site?

I know that it can be removed with the .htaccess file, but I have ajax with the php extension in my js file (example:

const url = "/ajax/ajax.preReg.php?name="+user_name;
)
and if I remove php from there, then everything will break
. Is it possible to somehow modify .htaccess or is there another way?

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