Sample Header Ad - 728x90

How to allow pdf files in .htaccess?

0 votes
1 answer
4135 views
I have this following codes in my htaccess file, but it doesn't allow pdf file to open, it will redirect to 404 page. how can I allow pdf files to open based on my following htaccess file. RewriteEngine on RewriteCond $1 !^(index\.php|images|public|assets|uploads|themes|updates|asset|mob|robots\.txt\.pdf) RewriteRule ^(.*)$ index.php?/$1 [QSA,L] Header set Cache-Control "max-age=604800, public" I highly appreciate your help. Thank
Asked by Jona (1 rep)
Dec 31, 2017, 05:56 AM
Last activity: Apr 28, 2025, 03:05 PM