Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing PDF #21

Closed
morganiit opened this issue May 3, 2019 · 0 comments
Closed

Missing PDF #21

morganiit opened this issue May 3, 2019 · 0 comments

Comments

@morganiit
Copy link

morganiit commented May 3, 2019

Sorry im noob in yii but i'm getting error.

PDF.js v1.4.20 (build: b15f335)
Message: Missing PDF "http://my-app/results/mypdf.pdf".

I am using Yii2 Basic Template
I enabled pretty Url and I also have a folder inside the web folder named 'results' and inside the results folder I have a pdf named mypdf.pdf. What am I doing wrong? Please help.

Edit: here is my .htaccess inside web folder
`RewriteEngine On RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php`

and my .htaccess inside the app folder
`Options +FollowSymLinks
IndexIgnore /
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/(web)
RewriteRule ^assets/(.)$ /web/assets/$1 [L]
RewriteRule ^css/(.
)$ web/css/$1 [L]
RewriteRule ^js/(.)$ web/js/$1 [L]
RewriteRule ^images/(.
)$ web/images/$1 [L]
RewriteRule (.*) /web/$1

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /web/index.php`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant