[wp-trac] Re: [WordPress Trac] #4507: Changing the slug of some
permalinks
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 21 19:59:53 GMT 2007
#4507: Changing the slug of some permalinks
-----------------------------------------------------+----------------------
Reporter: karaboga | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.3 (trunk)
Component: General | Version: 2.2.1
Severity: minor | Resolution:
Keywords: slug, category, permalink, author, page |
-----------------------------------------------------+----------------------
Changes (by Otto42):
* priority: normal => low
* type: defect => enhancement
* component: Administration => General
* severity: normal => minor
* milestone: 2.2.2 => 2.3 (trunk)
Comment:
There is no fixed slug for "page". Pages get their slugs directly from the
Page. If the page's slug is "bongo" then the URL is
http://example.com/bongo/ .
The fixed bases are: author, search, comments, and feed. You can edit them
by changing the relevant lines in rewrite.php.
{{{
var $permalink_structure;
var $use_trailing_slashes;
var $category_base;
var $category_structure;
var $author_base = 'author';
var $author_structure;
var $date_structure;
var $page_structure;
var $search_base = 'search';
var $search_structure;
var $comments_base = 'comments';
var $feed_base = 'feed';
}}}
Just change them there. While it would be nice if these were editable in
the admin screens, you will run into the problem of people trying to set
them to blank and then wondering why none of their permalinks work. They
try that with the category base all the time, right now.
--
Ticket URL: <http://trac.wordpress.org/ticket/4507#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list