PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` --- layout: default title: Base URL --- # Base URL It's common to route all images under the path `/img/`. However, since Glide maps image request paths directly to the image source paths, you would have to have an `/img/` folder in your source location as well. For example: ~~~ js 'http://example.com/img/kayaks.jpg' => '/path/to/source/img/kayaks.jpg' 'http://example.com/img/users/jonathan.jpg' => '/path/to/source/img/users/jonathan.jpg' ~~~ Since this isn't ideal, Glide allows you to define a `base_url` which is omitted from the source path. ## Set the base URL ~~~ php '/img/', ]); // Set using setter method $server->setBaseUrl('/img/'); ~~~ With the base URL configured, the new image source paths will no longer include `/img/`. ~~~ js 'http://example.com/img/kayaks.jpg' => '/path/to/source/kayaks.jpg' 'http://example.com/img/users/jonathan.jpg' => '/path/to/source/users/jonathan.jpg' ~~~