This is an expansion on the second answer to the question asked here.
I have been trying to redirect a post request from my_website/test to wp-content/themes/my_theme/test.php but I am getting a 404 whenever I try to send it.
I have a .htaccess file in /wordpress with the contents
#BEGIN WordPress Redirect 301 /test_redirect wp-content/themes/my_theme/test.php #END WordPress
Is the htaccess file being used by wordpress or apache? Do I need any special configurations on either to allow them?
I saw somewhere that to allow .htaccess files you just need to change apache2.conf from AllowOveride none to all for and Directory /var/www/>, is this the only setting I need to change?
I also saw that having proxypass enabled might interfere with the redirect, is this true? Is there a way to get around that if it is?
Thanks to Jorin for the help with solving this problem.
I changed the location of the .htaccess file down to www instead of www/wordpress and changed the address of the php file I wanted to redirect to to the full link i.e.
And that redirect worked!