Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm deploying a multi-site network, using subfolders. I've found on the main site the permalinks for news posts can only be placed like so:

/blog/%year%/%monthnum%/%postname%/

I understand that this prefix is needed to lessen the risk of conflict between the main site and sub-sites. Unfortunately this is a serious website, where the word 'blog' isn't really appropriate. Something like /pressreleases would be much more appropriate, and still avoid conflicts.

I tried various of the 'tricks' people mention, such as editing the permalink structure from the network admin settings. I also tried using rewrite rules (both Apache and the Redirection plugin) without much luck. WordPress needs to believe the posts are at the location in the address bar, so rewriting results in a 404. I could redirect them back to /blog, but that still has the same problem.

How can I change the permalinks?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Let see if I remember this correctly.

  1. Go to http://yoursite.com/wp-admin/options.php
  2. Find permalink_structure. By default, the value should be /blog/%year%/%monthnum%/%postname%/
  3. Change the value manually to whatever value you like. e.g /pressreleases/%year%/%monthnum%/%postname%/ or just /%year%/%monthnum%/%postname%/. Then Save Changes.
  4. Now visit http://yoursite.com/wp-admin/options-permalink.php and DON'T click Save Changes. It should flush the rules. If you click Save Changes it will revert back to the default.

LOL

share|improve this answer
    
Is there some way of making this change in code, so the client doesn't accidentally alter it? –  Marcus Downing Apr 27 '11 at 12:14
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.