Reputation: 671
I am struggling with what is probably a very easy fix.
RewriteEngine On
RewriteRule ^sotw/list/([^/]*)/([^/]*)$ /wp-content/plugins/wp-photocontest/view.php?post_id=$1&order=$2 [L]
NOTE: This is a WordPress site using custom permalinks. This URL Rewrite is for a plugin I want to clean up the url.
Old URL : www.mywebsite.com/wp-content/plugins/wp-photocontest/view.php?post_id=2049&order=chrono
New URL : www.mywebsite.com/sotw/list/2049/chrono
Anything I link forward to the new url works. But I want to to redirect all of the OLD urls I have tried adding the following to my RewriteRule with no luck.
[R=301,L] [L,R=301,NC]
What should I try instead?
Upvotes: 2
Views: 219
Reputation: 7066
Have you tried just [R=301] you do not need the L flag as R prevents the rest of the file being checked.
Upvotes: 0