People need help. In short, there is a site where there are files and I need to make sure that these files do not have direct access.
например: http://site.ru/userfile/file.doc But I need to make a request with the get parameter
htp://site.ru/?view=post&path=file.doc and in the handler doing so
$path = "userfile/".$_GET['path']; I tried to close access via .htaccess like this. I'm redirecting
RewriteRule ^userfile/(.*)$ htp://site.ru/ [L,R=301] But in this case, the get request from the handler does not work. What do you advise? Is there any way to redirect?