• Resolved fabianborg

    (@fabianborg)


    Hi

    I have an issue with the permalink setting /%postname%/ as this is redirecting all the page links to the homepage. The issue may be viewed here.

    I have searched to try and find a solution to this problem but cannot find a solution. I have changed the permalink settings to the wordpress default and the links worked perfectly until I change the permalink back to /%postname%/ and all the links redirect to the homepage.

    The htacess file is the default wordpress htacess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    What can be the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fabianborg

    (@fabianborg)

    Hi this is the error I get on the error log

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'disable_embeds_rewrites' not found or invalid function name in /home/public_html/mytheme/wp-includes/plugin.php on line 235

    The error surfaced past the upgrade of Yoast SEO

    Any help would be really appreciated.

    Thread Starter fabianborg

    (@fabianborg)

    I have found that the error is generated by the new update of Yoast SEO plugin.
    To correct the issue from my functions.php I had to disable the:

    /* Remove all embeds rewrite rules. */
    /* add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); */

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalink /%postname%/ error redirects all links to homepage’ is closed to new replies.