[wp-trac] [WordPress Trac] #10363: Permalinks with a Static Directory Fail if the Static Directory is Accesed Directly

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 9 13:48:43 UTC 2009


#10363: Permalinks with a Static Directory Fail if the Static Directory is Accesed
Directly
--------------------------+-------------------------------------------------
 Reporter:  e39m5         |        Owner:  ryan    
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:          
Component:  Permalinks    |      Version:  2.8     
 Severity:  major         |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:2 e39m5]:
 > Unless I'm missing something, this is impossible to accomplish without
 directly editing Wordpress's .htaccess file.  Because permalinks allow for
 the static directory though, it should know how to handle them.

 No, you just need something like a custom page template, assigned to the
 /blog/ page:

 {{{
 <?php
 /*
 Template Name: Redirect to Home
 */

 wp_redirect(get_bloginfo('url'));
 exit;
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10363#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list