Skip to content
WJunction - Webmaster Forum

Regarding .htaccess Redirection

Status
Not open for further replies.
Hi,

I have doubt about .htaccess file redirection. Domain1 will listed multiple domains like domain2, domain3, domain4,.... If i click domain2 it'll open separate window for domain2 but that all domain2 files are in domain1. Just have to access all files in domain 1. But, in address bar we want to show only domain 2. Here the sample site,

http://www.spis-online dot dk

I need the full .htaccess commands. Can anyone help me.

Thanks in advance.
 

4 comments

my first idea: you can't do this.
my second: just add an alias to your domain 1 apache/nginx/etc. configuration to solve this problem
my third: perhaps i've read the message wrong.
Of what files are we talking about? picutres? if yes, that's possible.
but you have to be more specific where your files are located, or what you want to load from domain1.

you can do a rewrite to get all pictrues from domain1 by using s.th. like this:


RewriteEngine on
RewriteRule \.(gif|jpg|png)$ http://domain1.com/%{REQUEST_URI} [NC,R=301,L]


assuming your images are on the same location
e.g. /images/01.jpg

note: i haven'T tested this.
 
Status
Not open for further replies.

About the author

C
New Member · Joined
3
Messages
0
Reactions
1
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom