| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Redirect domain by proxy in HTTPS and only htaccess |  |  
| Author |  |  
| sweetromain 
 
 
 Joined: 05 May 2020
 Posts: 1
 
 
 | 
|  Posted: Tue 05 May '20 16:21    Post subject: Redirect domain by proxy in HTTPS and only htaccess |   |  
| 
 |  
| Hello, I don't if a solution is possible but my problem is the next:
 I'm on OVH shared server (start10m) so only htaccess is possible. It's on Apache 2.4. List of enabled module https://hastebin.com/raw/uwedifihiy
 My objective is when a visitor visit a.com, this htaccess on this domain get data from b.com which is on my server.
 All in https.
 Actually I can make https a.com get http b.com but when I try https b.com I've an error.
 My current code is :
 
  	  | Code: |  	  | RewriteEngine On RewriteRule ^(.*)$ http://b.com%{REQUEST_URI} [P]
 | 
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Sun 17 May '20 17:47    Post subject: |   |  
| 
 |  
| What you need a is a reverse proxy. |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |