Prevent Downloading - .htaccess

1
2
<FilesMatch "\.(tex|log|aux)$">
Header set Content-Type text/plain
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

1 Response

Sometimes you want to force the browser to display some content instead of downloading it. The above snippet will help.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.