Welcome Guest, Not a member yet? Register   Sign In
linking to .pdf
#6

[eluser]LuckyFella73[/eluser]
Is it common praxis to load .pdf files like every other view (sending the
right header) instead of just linking to the file? Doesn't make much sense
to me unless you generate the pdf file dynamicly maybe. But maybe I'm
wrong.

@miramichi
Depending on what hosting environment you have the .htaccess file looks
different. A .htaccess file for a CI installation COULD look like this:
Code:
RewriteEngine On
RewriteCond $1 !^(index\.php|flash|images|stylesheets|javascript|pdf_files|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]


Messages In This Thread
linking to .pdf - by El Forum - 04-06-2011, 11:15 AM
linking to .pdf - by El Forum - 04-06-2011, 01:59 PM
linking to .pdf - by El Forum - 04-06-2011, 02:35 PM
linking to .pdf - by El Forum - 04-06-2011, 05:02 PM
linking to .pdf - by El Forum - 04-07-2011, 12:54 AM
linking to .pdf - by El Forum - 04-07-2011, 01:31 AM
linking to .pdf - by El Forum - 04-07-2011, 09:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB