[wp-trac] [WordPress Trac] #38182: rest_url does not support index permalinks

WordPress Trac noreply at wordpress.org
Wed Sep 28 21:31:29 UTC 2016


#38182: rest_url does not support index permalinks
--------------------------+------------------
 Reporter:  kraftbj       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------

Comment (by georgestephanis):

 For anyone hitting this problem before it gets fixed by core, you can
 apply this fix to get it working right now:


 {{{
 add_filter( 'rest_url_prefix', 'fix_rest_url_prefix_for_rewrites' );
 function fix_rest_url_prefix_for_rewrites(){
     return 'index.php/wp-json';
 });
 }}}

 in PHP 5.3+.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38182#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list