탐색 건너뛰기

Open

Reported for: WPML SEO 2.1.0

Topic Tags: Compatibility

Overview of the issue

You may experience improper redirections issues and potential 404 errors when Rank Math SEO plugin is installed, particularly with URLs containing special characters as double quotes.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/seo-by-rank-math/includes/modules/woocommerce/class-product-redirection.php file.
  • Look for line 110.
  • Replace:
    		$new_link = implode( '/', array_map( 'rawurlencode', explode( '/', ltrim( $new_link, '/' ) ) ) ); // encode everything but slashes.
    
  • With:
    		if ((preg_match('/%[0-9A-Fa-f]{2}/', $new_link))) {
    			$new_link = rawurldecode($new_link);
    		}
    
    		$new_link = implode( '/', array_map( 'rawurlencode', explode( '/', ltrim( $new_link, '/' ) ) ) ); // encode everything but slashes.
    

2 응답 - “Rank Math SEO - URL's With Special Characters Lead To 404 Errors”

    • Your case is more complex than that the situation here described and there are a lot of other variables involved.
      We will continue the investigation in the ticket you have already opened.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>