How can I set the rewrite base of the rewrite engine to
#access site via http://220.127.116.11/~sitename/ RewriteBase /~sitename/
when it's accessed via http://18.104.22.168/~sitename/ and set it to
#access site http://www.sitname.com RewriteBase /
when it's accessed via www.sitname.com?
I'd like to have some sort of switch or condition. Because now when I set the RewriteBase to one of the options, the site is not functional when trying to access it with the other url.
EDIT: New site same problem.... so is this unsolvable?