The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 07:57 PM
How to rewrite a line in a file c0384 Shell Programming and Scripting 21 05-22-2007 02:06 AM
How do I rewrite to use a while instead of find? goodmis Shell Programming and Scripting 4 02-06-2007 02:20 PM
rewrite the same info in 3 different files strok Shell Programming and Scripting 6 03-29-2003 01:50 PM
Apache macdonto UNIX for Dummies Questions & Answers 2 08-22-2001 07:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-10-2002
hassan2 hassan2 is offline Forum Advisor  
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
  #2 (permalink)  
Old 11-11-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
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).
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0