i made phar archive out of web application source directory. directory contains 'css' , 'js' directories well. static files addressed /css/xyz.css etc. in html. when try access application html loading fine static files not. tried adding apache rewrite rule maps /css/xyz.css /app.phar/css/xyz.css doesn't work. everytime hit
http://hostname/css/xyz.css
it loading index.php.
do have modify static file references /app.phar/css/xyz.css ? static file urls relative phar file working fine.
also, mod_rewrite unusable when using phar?
thanks!
mod_rewrite
apache module. apache runs .phar
file via php, it's in php's hands. responsible sending out files properly.
phar::webphar() has $rewrites
parameter lets simulate mod_rewrite on own within .phar
.
Comments
Post a Comment