Prevent Downloading - .htaccess

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

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.