Possible with RewriteRule?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mahmood
Forum Newbie
Posts: 8
Joined: Fri Mar 19, 2004 5:23 pm

Possible with RewriteRule?

Post by mahmood »

Hi guys

I want to do something like this:

send [b]folder1.mydomain.com [/b]to [b]mydomain.com/folder[/b]

[list=]I want this to be invisible to the visitor ie. the url doesnt change.
I prefer not to set up a subdomain, just[/list]

Is this possible?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Possible with RewriteRule?

Post by pickle »

I'm not sure it is possible. You need to have DNS directing requests to folder1.mydomain.com to the right server, even before .htaccess kicks in.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply