Changeset 8097
- Timestamp:
- 01/18/2019 01:59:01 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r7968 r8097 38 38 function wporg_themes_trailing_slashes() { 39 39 if ( '/themes' === $_SERVER['REQUEST_URI'] ) { 40 wp_safe_redirect( '/themes/' ); 40 wp_safe_redirect( '/themes/', 301 ); 41 die(); 42 } 43 44 if ( false !== stripos( $_SERVER['REQUEST_URI'], '/index.php' ) ) { 45 $url = str_ireplace( '/index.php', '/', $_SERVER['REQUEST_URI'] ); 46 wp_safe_redirect( $url, 301 ); 41 47 die(); 42 48 }
Note: See TracChangeset
for help on using the changeset viewer.