Redirect pages with “+” symbol
-
Hello
I want to redirect old Drupal pages to WP. So the page https://domain.com/lorem+ipsum+dolor should redirect to https://domain.com/lorem-ipsum-dolor
I did everything as descrived here https://stackoverflow.com/a/70368904/3197180
- Source URL:
^(.*)
- Match:
URL and custom filter
- Filter Name:?
redirect_has_pluses
- Matched Target:?
[dashes]$1[/dashes]
add_filter( 'redirect_has_pluses', function ( $result, $url ) { return ( strpos( $url, '+' ) !== false ); }, 10, 2 );
Unfortunatelly pages doesn’t work at all, too many redirects
Is it possoble to fix such redirectss?
Thanks
- Source URL:
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Redirect pages with “+” symbol’ is closed to new replies.