A
A
Asjacker2019-07-22 12:54:49
PHP
Asjacker, 2019-07-22 12:54:49

.htaccess change url how to do?

Help me please!
On my site, after registration, each user is given an alias
; each user has its own link, something like this: https://example.com/url/kajdjalwh.png
I need to make it so that each user does not need to create a separate file, but simply following your link, specifying your alias, the function I needed was executed
like this: https://example.com/url/url.php?alias=123&function=test
it needs to be like this: https://example.com/url/123 .php?function=test
I hope I explained it clearly, please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2019-07-22
@ThunderCat

Any modern framework normally implements this, read on mvc, routing, mod_rewrite. If you describe everything that you want in the question, it will just come out of the dock on these concepts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question