R
R
Ruslan Makarov2016-03-12 19:25:21
PHP
Ruslan Makarov, 2016-03-12 19:25:21

How to make cnc for links (remove unnecessary characters)?

Good!
I have links, like this:
site.ru/?go=53/file.exe
Where 53 is the Id of the file, and at the end is its name.
Tell me how to make the link look something like this:
browsi.ru/go/53/Opera_int_Setup.exe
Or something like that...
The main thing is to remove the question mark and =
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Silm, 2016-03-12
@Silm

Give a direct link to the file.

D
Dmitry Pechurkin, 2016-03-12
@DPechurkin

create a rule in .htaccess to redirect requests matching a regular expression to a specific file, or connect a file using a regular expression.
for example, you can make a handler that will process direct links and issue the desired file, or you can dig deeper with regular expressions and make a direct redirect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question