Suppose my drupal site domain is www.xxx.com, and I have a 301 redirect from aaa.xxx.com to www.xxx.com/aaa. I want the address in the web browser keep unchanged even when the redirect successfully executes, which means that aaa.xxx.com behaves like the alias of www.xxx.com/aaa.

More ideal, if www.xxx.com/aaa has a subpath bbb or any other sub-sub path, navigation to the url of www.xxx.com/aaa/bbb... only shows the address of aaa.xxx.com/bbb.... In brief, I need all the accesses to www.xxx.com/aaa are hidden for the user, and "pretended" to be aaa.xxx.com.

Is there a method to do that?

closed as off-topic by Kevin, Pierre.Vriens, mradcliffe, kiamlaluno Jan 9 at 14:27

  • This question does not appear to be about Drupal within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I'm voting to close this question as off-topic because it isn't about Drupal but about setting a DNS server. – kiamlaluno Jan 9 at 14:27

Browse other questions tagged or ask your own question.