WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to disable canonical redirection of category slug. My url structure for a category page looks like


Now when i change the categoryslug in the url to any other word, say catslug, it still takes me to the same page. I want this url to return a 404 page. My .htaccess file has the following:

# BEGIN WordPress 
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
# END WordPress

I think that the solution is somewhere else as the same htaccess file is used on a different website and that site shows up a 404 page when i do the same stuff over there.


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.