The problem I'm having is with the mod_rewrite section. The code that the client provided came from a blog with code that didn't actually work.
Here is the original code:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/proxy.php
RewriteRule ^(.*)$ proxy.php?secret=123123&u=$1 [PT,L,NE,QSA]
The issue I'm having is that the rewrite will not pass the requesting URLs query string data. Here is the example:
User visits
www.nodesite1.com/page.php?post=1&user=2
mod_rewrite should change this to
www.nodesite1.com/proxy.php?secret=1231 ... t=1&user=2
proxy.php then processes.
My first guess at the problem is that there are two '?' in the URL. Entering the URL directly shown above will work, but that is probably due to the browser doing a URL encoding on the second '?'.
Any ideas?