.htaccess - Masking dynamic DNS name and port with domain name running on Apache 2 -


i have searched around quite bit haven't been able accomplish want yet. have a couple websites hosted on same server on different ports, , pointed dynamic dns name http://a.dyndns.org:456 , http://a.dyndns.org:789

i have real domain names bob.com 301 redirect http://a.dyndns.org:456, , joe.com redirect site hosted @ port 789. problem when user goes bob.com browser's address bar shows uglier url: http://a.dyndns.org:456/index.php?arg=1 whereas show http://bob.com/index.php?arg=1 , if click "about" link want browser address bar show http://bob.com/about.php?arg=2 etc. want mask dyndns name , port, still show rest of url , arguments (to make easy them copy link page on).

i have tried modifying servername, writing rewrite rules, creating .htaccess files , can't work. please let me know if want possible setup of if there better way. btw domain names through namecheap.com in case matters.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -