The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
grep help, how do i rewrite this weezybaby Shell Programming and Scripting 5 01-31-2008 04:57 PM
How to rewrite a line in a file c0384 Shell Programming and Scripting 21 05-21-2007 11:06 PM
How do I rewrite to use a while instead of find? goodmis Shell Programming and Scripting 4 02-06-2007 11:20 AM
rewrite the same info in 3 different files strok Shell Programming and Scripting 6 03-29-2003 10:50 AM
Apache macdonto UNIX for Dummies Questions & Answers 2 08-22-2001 04:22 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-10-2002
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Red face Apache Rewrite help!

I am trying to write RewriteRule on Apache_1.3.26 to get users web page from another server.

for example if users tries to get web page on
www.somedomain.com/~usersname
it will get the web page from www.testdomain.com/~username without redirect and users will not be aware of any redirect action or any url changing in the address bar, I want the url to stay the same.

Basically I want, http://www.somedomain.com/~usersname

to become

http://www.somedomain.com/~usersname

but get web page from http://www.testdomain.com/~username


I tried this the following

RewriteEngine on
RewriteRule ^/~(.*)$ http://www.testdomain.com/~$1 [P,L]

it work but it works like a redirect and users are aware that the page is being redirected and the url did not stay the same.

I enabled rewrite log and the following entry is log when ~username web page is request.
"go-ahead with proxy request proxy:http://testdomain.com/~thomas [OK]

users are aware that url is redirected. I want the Rewrite rule to work like a proxy, no redirect action just get web page from remote server without url changing.

Can you please, please

Thanks in Advance
Forum Sponsor
  #2  
Old 11-11-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Try Ralf Engelschall's rewrite page for a solution (possibly Canonical URLs will help).
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0