Here's my code:
RewriteEngine on
RewriteRule page/(.*) index.php?url=$1 [NC]
When I access page/http://google.com/ = works just fine
When I access page/http%3A%2F%2Fgoogle.com%2F = server reports 404
Martti Laine
I believe you need the B (escape) flag:
RewriteRule page/(.*) index.php?url=$1 [NC,B]
That will escape the back-reference ($1) before adding it to the replace string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With