WordPress.org

Ready to get started?Download WordPress

Forums

404 permalinks and redirects (7 posts)

  1. jmacmullen
    Member
    Posted 4 years ago #

    I installed WP in /blog from my root and setup redirection in .htaccess and have also enable permalinks. Recently I installed a newsletter plugin that has an activation link in the subscribe back to the site and when I click after registering I'm getting a 404. I did a little testing and was able to get it to work but I'm not sure if this is a redirection or plugin problem.

    Here is a snippet of the activation link that fails with 404:
    http://mentabolism.com/blog/?page_id=212

    Here is a tweak on the activation link that loads the page:
    http://mentabolism.com/?page_id=212

    Simply point to the site root vs. the root/blog and I get the page. I'm not sure why the plugin is using the root/blog in the activation email. Any thoughts on how to correct this?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    If your WP install is in the .blog sub-folder, how did you configure it to run from root? Did you follow the instructions in Giving_WordPress_Its_Own_Directory?

  3. jmacmullen
    Member
    Posted 4 years ago #

    Yes I did.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Then it sounds like the plugin isn't picking up the correct url. It's picking up the site url instead of the blog url. You may need to try another newsletter plugin.

  5. jmacmullen
    Member
    Posted 4 years ago #

    That's what I was thinking will poke around the plugin an see if I can figure out what their picking up.

    Thanks

  6. jmacmullen
    Member
    Posted 4 years ago #

    Follow up on this.
    I checked the code an the they get_option 'siteurl' so what I'm wondering is what should siteurl actually be set to in wp_options?

    Mine is set to http://mentabolism.com/blog
    as I look further through wp_options I noticed that the option home has the correct base value for the site, perhaps this is the value that needs to be set in the get_option call and not the siteurl?

    Can you verify that the siteurl should point to the base where the blog is installed?

  7. esmi
    Forum Moderator
    Posted 4 years ago #

    get_option('siteurl') will point to the WordPress url.
    get_option('home') will point to the blog url.

    http://codex.wordpress.org/Option_Reference

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags