fake redirect without content retrival

New to mod_rewrite? This is a good place to start.

fake redirect without content retrival

Postby just4laugh » Sun May 24, 2009 11:08 am

hello there first of all i like thank the owner for creating such a wonderful site with great content.

i am :) new n learning into the world of web. here is what i like to achieve.

1:- website A redirects to website B.

Code: Select all
#RewriteCond %{HTTP_HOST} !^www\.websiteA\.com
#RewriteRule (.*) www.websitedB.com/$1 [R] 


2:- however the websiteB is a fake URL so we get an error 404 Page not Found therefore in our address bar now the fake url is being displayed.

3:- now i would like to keep that fake url on the address bar and simultaneously the conent to be retrieved from our websitedA without any change to the url in address bar. so it would seem the content belongs to the website B.

any guidance or help will really be appreciated. thanks alot guys :)
just4laugh
 
Posts: 1
Joined: Fri May 22, 2009 4:41 pm

Postby richardk » Sun May 24, 2009 1:53 pm

You would have to own the websiteB domain.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 120 guests

cron