I would like to learn if I can serve the website from 2 different versions according to URL string parameters.
Example:
- I have two installs on my server:
example.com/website-1/
andexample.com/website-2/
- if end-user visits
example.com/main/?showads=yes
—> serve website fromexample.com/website-1/
- İf end-user visits domain
example.com/main/
—> serve website fromexample.com/website-2/
Note: this is not a redirection question, I just want to serve with the same URL.
p.s. I'm running a WordPress website on an Apache server.
I'm open to any solution via PHP, WordPress, or Apache (.htaccess
) config.