Redirecting old post url to 404 in wordpress using htaccess


In wordpress I have a post with url

I renamed its permalink to

Now if I open old url then it auto 301 redirects to
due to wordpress built-in feature by default.

However I want to show 404 when someone tries to open

I tried putting this in htaccess but it gave 500 server error instead:

RewriteEngine On
Redirect 404 /article.html

Please advice.

, samjoezzy 4 years 2020-05-19T11:10:22-05:00 0 Answers 84 views 0

Leave an answer