Viewing 15 replies - 1 through 15 (of 16 total)
  • Review Using_Permalinks before setting a custom permalink structure back up again.

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    Thanks.

    I read that entire page, but how do I change the settings in my server?

    You go to ‘settings >> permalinks’.

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    Thanks Zach

    I know how to change it in my WP settings, but when I change it, it reroutes my pages weirdly (see above post).

    How do I make this stop happening?

    Check the permalink setting on the actual page.

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    What do you mean?

    When you view a page, in the dashboard, under the title there is a permalink option, check they are what you want.

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    So in Settings >> Permalinks, if I have “Default” checked, everything is fine.

    If I check “Post Name”, and look at the permalink of a page in the page editor, everything looks fine, but when I go to the actual page, it adds the domain to the end of the url and auto-forwards to a blank page.

    For example, on the page “Shiloh Youth Homepage”, the url in the page editor shows as https://www.shilohyouth.ca/shiloh-youth-homepage/ but when I go to view the page the url is https://www.shilohyouth.ca/shiloh-youth-homepage/www.shilohyouth.ca and is “auto-forwarding” and just stays as a blank page.

    Does that make sense?

    Thanks!

    Could you post the custom permalink you have in ‘settings >> permalinks’

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    Under “Custom structure” it says /%postname%/ but I want “Post name” to be the selected permalink structure.

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    Still need help with this!

    Hi Lindsay, it is pulling the full url from somewhere, instead of the page name. Have you checked each of your pages to make sure there’s no custom url listed anywhere, especially with SEO plugins? Go to edit page, and check the permalink url’s for each page. See if they’re also doubling there.

    As a side note, have you used the Duplicator plugin? I noticed it doubling up my url’s in my config.php file, and had to edit that bit of php to stop it. Hope some of this helps, I’m a total noob myself!

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    Thank you!

    I deactivated all plugins and still have the same problem. I think it might be something I need to change in the host settings but I’m not sure where that would be.

    Have you checked your config.php file? Look for some code that should look like this:

    define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);
    
    define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);

    When mine was messed up, it looked like this:

    define('WP_SITEURL', 'https://myfullurl.com' . $_SERVER['HTTP_HOST']) . '/wordpress';
    
    define('WP_HOME', 'https://myfullurl.com' . $_SERVER['HTTP_HOST']) . '/wordpress';

    I had to edit the file to make it look like the first bit of code, and it stopped doubling. I’m not sure your circumstances are the same, but it’s at least one more place to look.

    Thread Starter LindsayLaidlaw

    (@lindsaylaidlaw)

    Thanks.

    I finally was able to access the config.php file but it doesn’t seem to have that line of code anywhere in it.

    There’s just a bunch of random info and the at the very bottom there’s this, but that’s all.

    /** WordPress absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);

    Any other suggestions? I really need to get this fixed asap!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Permalink Rerouting’ is closed to new replies.