subdomain to subdomain forward with masking

subdomain to subdomain forward with masking - .htaccess files are extremely useful in many cases for users who either do not have root permissions or for users who simply aren't comfortable in making changes in their web server's configuration file. Trying to debug .htaccess not working isn't always the easiest thing to do, however, hopefully by checking the discuss below mentioned about htaccess, dns, linux, , .htaccess common problems as well as the troubleshooting tips, you'll have a better grasp on what you may have to modify to get your .htaccess file running smoothly.Problem :


I want to forward with mask from one server to another server.



In Server One:



www.abc.com
test.abc.com
live.abc.com



In Server Two:



http://ipaddress.com/folder1
http://ipaddress.com/folder2

test.abc.com --> http://ipaddress.com/folder1
live.abc.com --> http://ipaddress.com/folder2


In both servers what i have to do the accomplish this task.


Solution :

Server one: DNS server. Point the domains/subdomains to the corresponding server (ip/url).



Server two: Web server (Apache, Nginx, IIS etc.). Create virtual hosts/listeners that routes to the correct folder.



Without knowing what server setup you have, it's difficult to give a more detailed answer.


Additionally, if you would like to do some further testing, give the htaccess tester tool a try. It allows you to specify a certain URL as well as the rules you would like to include and then shows which rules were tested, which ones met the criteria, and which ones were executed.

Comments

Popular posts from this blog

Rewrite in Mediawiki, remove index.php, .htaccess

.htaccess rewrite wildcard folder paths from host

Using .htaccess to set a cookie and 301 redirect