I’m attempting to redirect /fourm/ on my website back to http://www.example.com
I’ve come up with this:
RewriteEngine On RewriteRule /forum/(.*) http://www.path.com(.*) [R=301,L]
However it doesn’t work, any thoughts appreciated
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Almost there you just need to back reference the part of the request you captured like so:
$X will reference a captured string in the matching part of the rewrite rule and output its value into the output string. Obviously, with the number corresponding to the group that was captured.