TECH redirect across domains?

White Stormy

Take that, subspace!
Sep 17, 2002
85,544
Sparkopolis
I need site1 to redirect to site2 without the URL in the address bar changing from site1's address.

site1 and site2 are on different hosts.

I can change the .htaccess on both.. I just can't figure out how to do this, if it's possible.

I put
Code:
RewriteRule ^(.*)$ http://site2.com/index.php?q=$1 [L,QSA]

into the .htaccess on site1, and that forwards it fine, but it changes the URL in the address bar.

is this possible?
 

Jesse

PSN: iamajesse; XBL: Inhale My Rod; G8 GT crew; Ne
OT Supporter
Jan 12, 2005
25,625
California :: (925)
is it for a few pages, or a whole site? If just a few pages, do a remote include.
Only way I could think to do it as well. But depending on the host, you may not be able to include across-domain. Even if they are on the same host. (security reasons)
 
TS
TS
White Stormy

White Stormy

Take that, subspace!
Sep 17, 2002
85,544
Sparkopolis
alright, thanks guys

I did a site for my uncle's company, but their current host blows and it wouldn't even run the 'index.php'

I'll just tell them they need to go ahead and find a new host.
 

Users who are viewing this thread

About Us

  • Please do not post anything that violates any Local, State, Federal or International Laws. Your privacy is protected. You have the right to be forgotten. Site funded by advertising, link monetization and member support.
OT v15.8.1 Copyright © 2000-2022 Offtopic.com
Served by fu.offtopic.com

Online statistics

Members online
456
Guests online
52
Total visitors
508

Forum statistics

Threads
369,623
Messages
16,901,096
Members
86,875
Latest member
Theodor