G
G
ghostku2016-11-07 15:16:13
Apache HTTP Server
ghostku, 2016-11-07 15:16:13

How to redirect an HTTP request?

Good day
I have a site on it is a text file mysite.com/file.txt There is an external site that periodically takes this file. Recently, I have to change this file quite often and for this I wrote a script that does this mysite.com/script.php?task=gen_file Unfortunately, I can’t change the settings on the site that takes the file, hence the question is how using Apache instead of text file mysite.com/file.txt give the result of the script mysite.com/script.php?task=gen_file ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RoverWhite, 2016-11-07
@RoverWhite

.htaccess and mod_rewrite will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question