Again with the 301 Redirects for Dynamic WordPress Links
-
I am having a fit with .htaccess 301 redirect if someone could help.
Google has given me 401 errors on a few links and I am trying to figure out how to do 301 redirects on them. They are like the example below and all contain the “&action=edit” in the link.http://www.mywebsite.com/wordpress/wp-admin/post.php?post=2159&action=edit
The below 301 commonly accepted rewritecond formula does not work and I suspect it has to do with the “&action=edit” fowling up the logic. Any help would be greatly appreciated.
‘RewriteCond %{QUERY_STRING} ^page=mypage$
RewriteRule ^index\.php$ http://www.domain.co.uk/mypage/? [R=301,L]’
- The topic ‘Again with the 301 Redirects for Dynamic WordPress Links’ is closed to new replies.