如何将辅助域的所有子域指向主域

我有一个辅助名,我需要它的子域名指向我的主域名。 例如,如果我的主域是example.com ,那么我已经使用example.org指向前者。 我希望达到的主要的所有子域也指向二级域。 我的意思是,例如,如果我有

example.com/about example.com/contact . . . 

我希望他们也被指出来

 example.org/about example.org/contact . . . 

请让我知道如何通过mod_rewrite规则来做到这一点,我通过googlesearchfind的例子,只关注从二级域名redirect到主域名,而不提及如何redirect子域名。

PS:目前,example.org正确地被replace为example.com。 但是对于子域来说并不是这样。 我的意思是, example.org/contact不会被example.com/contact取代。

更新:我的htaccess文件包括以下内容

 RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !example.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] 

在DA中,转到以下path:

 User level --> Domain pointer 

在添加第二个域之前,请取消选中"Create as an Alias" 。 那么,域types将是"pointer" ,它解决了你的问题。