![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Try Ralf Engelschall's rewrite page for a solution (possibly Canonical URLs will help).
|
||||
| Google The UNIX and Linux Forums |