WordPress.org

Ready to get started?Download WordPress

Forums

Remove Base Category from Permalinks (6 posts)

  1. tanver
    Member
    Posted 1 year ago #

    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

  2. samateo
    Member
    Posted 1 year ago #

    Have you tried removing /blog Category base and Tag base in Settings | Permalinks under the Optional section?

  3. tanver
    Member
    Posted 1 year ago #

    @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?

  4. samateo
    Member
    Posted 1 year ago #

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

  5. tanver
    Member
    Posted 1 year ago #

    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

  6. samateo
    Member
    Posted 1 year ago #

    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'.

Topic Closed

This topic has been closed to new replies.

About this Topic