• Resolved nazaire98

    (@nazaire98)


    Hey guys,

    I’ve set up webflow pages on my wordpress server. When I enter a matched URL the webflow page renders fine except the server is sending the 404 not found code. (I can see it in the JS console).
    Is this just me?

    This is really bad for SEO since pages can’t be indexed.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • tobiasrtrn

    (@tobiasrtrn)

    @nazaire98 I have the same problem and am searching everywhere, but with no luck. It’s a big problem, please fix it!

    Do you already have an answer?

    Thread Starter nazaire98

    (@nazaire98)

    I added one line “status_header( 200 );” to this function:
    Around line 115 of this file:

    /wp-content/plugins/webflow-pages/includes/public/class-webflow-pages-public.php

    
    /**
     * Filters pages if necessary
     */
    function filter_pages() {
    
    	$redirect_url = $this->get_redirect_url();
    
    	if ( "" != $redirect_url ) {
    		$site = wf_pages_get_url_content( $redirect_url );
    		if ( ! is_wp_error( $site ) ) {
    			status_header( 200 ); // This is the line I added
    			echo $site;
    			die; // prevent the normal WordPress flow
    		}
    	}
    
    }
    

    I don’t know if this is the “proper” way to do it but it works for me.
    It’s a quick hack, undo the change once the developers fix it themselves.

    • This reply was modified 6 years ago by nazaire98.
    Thread Starter nazaire98

    (@nazaire98)

    This was fixed in v1.0.4. Thank you devs!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Webflow pages returning 404’ is closed to new replies.