How does WP normally handle archive uris?
The standard archive uri for slug based permalinks seems to be:
/year/month/ for instance this month is
When I hack my own theme that uri will resolve to the home page. Is it up to my home page in my theme to do the proper forwarding? I think could do something like in home page template:
$uri = $_SERVER[‘REQUEST_URI’];
$a = explode(“/”, $uri);
header(‘Location: /archives’.$uri ) ;
Is that the way it’s normally done? I could also use /archives/2013/02/ in my urls, but it seems a bit nonstandard.
- The topic ‘How does WP normally handle archive uris?’ is closed to new replies.