E
E
Evgeny Danilov2016-04-23 15:57:15
htaccess
Evgeny Danilov, 2016-04-23 15:57:15

How to make a redirect to a php file with a variable name?

How to configure redirection with variable file name in .htaccess? For example - we go to the address - /methods/auth and we have a request to the file /methods/auth.php
That is, where auth - can be any file name that will be replaced.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dev400, 2016-04-23
@dev400

routing is needed adequate, see here www.phpinfo.su/articles/practice/chpu_na_php.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question