1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Regarding Redirection

Discussion in 'General Programming Chat' started by charlesbritto, Jun 18, 2013.

  1. charlesbritto

    charlesbritto Newbie

    Joined:
    Apr 3, 2013
    Messages:
    9
    Likes Received:
    0
    Occupation:
    SEM Executive
    Location:
    India
    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.
     
  2. andrejuseu

    andrejuseu Newbie

    Joined:
    Oct 9, 2011
    Messages:
    13
    Likes Received:
    2
    Could you add that code there, because I can't understant that you want.
     
  3. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    707
    Likes Received:
    267
    Location:
    PHP Scripting ;)
    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. :(
     
  4. andrejuseu

    andrejuseu Newbie

    Joined:
    Oct 9, 2011
    Messages:
    13
    Likes Received:
    2
    If I understand good, if he has domains in same admin panel, he can do paths for this with domain location.
     
  5. charlesbritto

    charlesbritto Newbie

    Joined:
    Apr 3, 2013
    Messages:
    9
    Likes Received:
    0
    Occupation:
    SEM Executive
    Location:
    India
    Hi,spis-online . dk this is the sample link, i want redirect like that.
     
  6. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,829
    Likes Received:
    7,437
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page: