I have a PHP script located at http://localhost/dir1/dir2/shift.php
that I am passing urls as parameters to like so: http://localhost/dir1/dir2/https://google.com
but I am getting a Forbidden you don't have access error. When I remove the :
it works fine though. I have checked my regex with some online regex validation tools and it says that it should be working but it doesn't
RewriteEngine on
RewriteRule ^dir1\/dir2\/([A-Za-z0-9\!\@\#\$\%\^\&\*\(\)\_\-\+\=\{\}\[\]\;\:\'\"\<\,\>\.\?\|\~\`\s\/\\]+)\/? dir1\/dir2\/shift.php?url=$1 [L]
Any help would be great. Thanks!