Mod Rewrite question
-
Suppose I have a blog article at:
https://www.example.com/blog/2009/02/my-article/I have a newsletter. The newsletter software adds tracking parameters to the URLs embedded in the newsletter. So, if I try to link to the article referenced above, the newsletter software ends up sending a link to something like:
https://www.example.com/blog/2009/02/my-article/?w=el&x=302692&y=3&z=952a7ad62dWhen a newsletter recipient clicks on the link, WordPress returns an error stating “Sorry, but you are looking for something that isn’t here.”
Question: How do I get WP to display the correct page?
I’ve tried adding variations on the following line to my .htaccess file, but without any success:
RewriteRule ^https://www.example.com/blog/2009/02/my-article/.+$ https://www.example.com/blog/2009/02/my-article/
[Note: I’ve tried doing this in the .htaccess files in both the root directory (example.com/) and in the blog directory (example.com/blog)]
Please help!
- The topic ‘Mod Rewrite question’ is closed to new replies.