May
11
2012

HowTO: Use separate domain for NextGEN Galley

HowTO: Use separate domain for NextGEN Galley

I use NextGEN Gallery to ,anage images on my blog, but it is better to use separate domain for retrieving images. In this case browser use additional threats to load images and nginx can quick proceed images request.

I created new subdomain g.tigor.me specially for NextGen Gallery.

tigor.me and g.tigor.me should be on the same server.

WordPress filter

To enable images path rewriting paste this code to your theme in functions.php.

Don’t forget to change tigor.me to your blog domain.

Nginx configuration

Now it’s time to add g.tigor.me to nginx.

Неправильная раскладка: рщцещ: гыу ыузфкфеу вщьфшт ащк тучепут пфддун

Понравилась статья? Посоветуйте друзьям!

WordPress WordPress Plugin


Понравилась статья? Подпишись на рассылку по E-Mail или в RSS.