apache - A different document root for beta users? -


i have wordpress based php application running on apache on ubuntu server. have developed new version of application, , i'd users access beta. server's structure this:
/var/www/site
/var/www/betasite

i don't want these users run site of different domain/subdomain. both sites supposed run off same wordpress database , hence need same domain. changing wordpress theme based on session/cookie not possibility because have lot of assets/plugins outside wp-content/themes folder.

i thinking of giving beta users cookie, , redirect requests cookies new document root. have been trying mess around htaccess's mod_rewrite, after lot of experimentation, figured mod_rewrite cannot redirect stuff outside apache's document root.
need virtual host setup based on cookie in request header. ideas?

running under separate (sub)domain best option. there no reason cannot use same database across both instances provided both site versions can use same database schema.

the problem may see wordpress specific one. example, there may config table in database has field current domain name or hostname. suggestion change/fix wordpress code can work without variable detecting correct hostname $_server variables.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -