Title: [Plugin: Virtual Theme] rewrite with NGINX ?
Last modified: August 20, 2016

---

# [Plugin: Virtual Theme] rewrite with NGINX ?

 *  [teewee](https://wordpress.org/support/users/teewee/)
 * (@teewee)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-virtual-theme-rewrite-with-nginx/)
 * Hi,
 * I’m using nginx instead of apache2 and I can’t find a way to make your plugin
   working.
 * Rewrite is OK for the other part of the website but does not work for VirtualTheme.
 * Can you help me with this issue ?
 * Thanks
 * [http://wordpress.org/extend/plugins/virtual-theme/](http://wordpress.org/extend/plugins/virtual-theme/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [teewee](https://wordpress.org/support/users/teewee/)
 * (@teewee)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-virtual-theme-rewrite-with-nginx/#post-2299582)
 * OK I finally find a way by myself
 * open your nginx conf file and add into your server { …. } part :
 * rewrite ^(.*/)?(THE_SLUG_YOU WANT)(/.*)?$ /$1$3?VirtualThemePath=$2 last;
 * Add a new line for each slug you want .

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Virtual Theme] rewrite with NGINX ?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/virtual-theme.svg)
 * [Virtual Theme](https://wordpress.org/plugins/virtual-theme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/virtual-theme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/virtual-theme/)
 * [Active Topics](https://wordpress.org/support/plugin/virtual-theme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/virtual-theme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/virtual-theme/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [teewee](https://wordpress.org/support/users/teewee/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-virtual-theme-rewrite-with-nginx/#post-2299582)
 * Status: not resolved