[wp-hackers] Override the /author/ URL

Peter Westwood peter.westwood at ftwr.co.uk
Thu May 8 17:32:26 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Menard wrote:
| Quick question.
|
| Is there a way to override the default author URL:
| http://somehost.com/author/author_name
|
| I'm working on an online music system. So the client wants the URLs to
| be http://somehost.com/dj/author_name
|
| Looking for possible plugins or general hack recommendations.
|

You should be able to do it with a simple plugin that changes the value
of "WP_Rewrite->author_base".

Remember to ensure you regen the permalink to make the change take.

westi
- --
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
~ C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIzkqVPRdzag0AcURAoexAKChCmMJKyL3rW79aXw11v7/G0FNxwCgubb2
UK7orKlUfBciO2lVM2Sq+yk=
=bf2w
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list