I'm trying to rewrite every request to the parent directory.
This is the content of my .htaccess
RewriteEngine on
RewriteRule ^(.*)$ ../$1
Unfortunately this isn't working and causes a 'Bad Request' error. Is this possible?
the .* should be caught between () this way the system knows it is suppose to "memorize" the expression as $1.
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