WordPress.org

Support

Support » How-To and Troubleshooting » Remove Base Category from Permalinks

Remove Base Category from Permalinks

  • One of my fellow developer has set this ‘Category Base’ and ‘Tag Base’ to “/blog”, now how can we remove this from the URL.

    Now the Permalinks page optional – parts looks like

    Category Base /blog <input box>
    Tag Base /blog <input box>

    I suspect this causing permalinks not work on this page here

    http://www.lisabel.ca/blog/articles/lisabel-artiste-peintre-contemporaine/

    When clicked on any of the Left Side Menu Option – Categories/Posts – the display does not change at all and the same contents are displayed.

    TIA

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried removing /blog Category base and Tag base in Settings | Permalinks under the Optional section?

    @samateo, probably you have not got what I am asking? let me say it again, it is already changed now I want to restore the default?

    Does your .htaccess contain a rule that might be redirecting requests to /blog ? something like RewriteRule . /blog/index.php [L]

    nope, here is the .htaccess file

    # 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]
    </IfModule>
    # END WordPress

    You still may have reference to the category or tag base inside the ‘rewrite_rules’ option of the ‘options’ table in your database. Check the array for references to /blog.

    WordPress will rebuild the list of rewrite rules if you rename the option_name value in that table to something like ‘rewrite_rulesbck’.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Base Category from Permalinks’ is closed to new replies.
Skip to toolbar