I found several other questions, but none is exactly what I'm trying to do.
I need to point www.mywebsite.com/certainfolder/blabla/?foo=bar To www.anotherwebsite.com/certainfolder/blabla/?foo=bar
So, if my website has a route to 'certainfolder', I need to point to this folder (with all other uri segments and get parameters), to another website.
Important is that the url remains www.mywebsite.com/certainfolder/blabla/?foo=bar It just has to take content from www.anotherwebsite.com, but cannot change the url.
I tried something like this, which is not working:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/certainfolder
RewriteRule ^/$ http://www.anotherwebsite.com/certainfolder/$1 [P,L]
I know i can use ProxyPass and ProxyPassReverse in the vhost conf file, but i cannot access this file, so i need to do it in the .htaccess
Is there any .htaccess specialist who can help me out?