C
C
Cris Alesund2017-01-27 19:11:30
htaccess
Cris Alesund, 2017-01-27 19:11:30

How to hide a file on the site through a redirect?

ErrorDocument 401 ***
ErrorDocument 403 ***
ErrorDocument 404 ***
ErrorDocument 500 ***

Redirect /test ***

RewriteRule ^(([^/]+/)*[^.]+)$ /$*** [L]

Redirect 301 *** http://www.domain.ru/new_page.html

RewriteEngine On

There is this code, let's say you need to hide the audio.mp3 file, i.e. when you click on it through view-source > there is a redirect to% random_site_url%
What and where should I write this?
Here is an example as I need, try on this site through the view-source to click on asdx.mp3
I would be grateful!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question