how to set premision for opening pages

i want have 1 site on 2 domains but , i wanna can open all links on

and show just some links on

for example , there is site like but when you wanna open gmail you have to use

and other link with will be unable to open or any error it can show !

how can i do this ? any rules on .htaccess
Last edited by a moderator:


Well-Known Member
Staff member
You can use rewrite rules to do so , something with some rewrite conditions.

If you want to direct to

at doc_root .htaccess, add the following:

RewriteRule ^/url1$ [R=301,L]
Last edited by a moderator:
are you sure ? i did add this code : RewriteRule ^/url1$ [R=301,L] on the top of .htaccess but it didnt work
Last edited by a moderator: