• Resolved silver89

    (@silver89)


    Hi,

    At the moment I’m using urls in the following structure:

    /%category%/%postname%

    However I want to change it to:

    news/%postname%

    but if I do this I get 404 errors.

    I know changing urls after a site has been around is bad for seo but I plan to 301 the urls with .htaccess so there won’t be an issue.

    RewriteRule ^category/([a-zA-Z0-9-_]+)/ http://domain.com/news/$1 [R=301,L]

Viewing 1 replies (of 1 total)
  • Thread Starter silver89

    (@silver89)

    Found the problem.

    Was using this for the custom:

    news/%postname%

    and then this in the category:

    /%category%/

    Using just “category” in the category part fixed it.

Viewing 1 replies (of 1 total)

The topic ‘Adding a word to the custom permalink’ is closed to new replies.