Regarding Redirection

charlesbritto

Newbie
Joined
Apr 3, 2013
Messages
9
Reaction score
0
Hi,

I'm newbie of web development. I want to redirect & access all domain1 sub folder files to domain2 with the help of .htaccess. For example, domain1/folder to domain2. My all files have only in domain1. If i enter domain2 in address bar, domain2 want to access domain1 all files, but domain1 won't show in address bar. Ex. if enter domain2/sample, it wants access domain1/sample, but in address bar domain2 want to show. Domain1 not at all show in the address bar while the process. Can anyone give me the full .htaccess file redirection comments.

Already i got the code from BHW member. But, it didn't work. Can anyone assist me.

Thanks in advance.
 
He is basically asking for a redirection, where the url remains the same, but content is from another location.

Domain2/admin shows the content of domain1/admin, but the url remains the same.

Well, not sure if you can do such redirects with htaccess, but with PHP and Ajax, or less professionally, using an iframe to show the contents of other sites. Well, then, it isnt a redirection. :(
 
He is basically asking for a redirection, where the url remains the same, but content is from another location.

Domain2/admin shows the content of domain1/admin, but the url remains the same.

Well, not sure if you can do such redirects with htaccess, but with PHP and Ajax, or less professionally, using an iframe to show the contents of other sites. Well, then, it isnt a redirection. :(
If I understand good, if he has domains in same admin panel, he can do paths for this with domain location.
 
Hi,spis-online . dk this is the sample link, i want redirect like that.
 
Back
Top