• Resolved Samuel Aguilera

    (@samuelaguilera)


    If you activate the Permalinks -> Redirect attachment URL’s to parent post URL. option and you have some attachments in the media library that has no parent post (i.e. are not uploaded from the post media library. images from an old migration for example).

    You will end with a lot of 310 apache errors (too many redirects).

    The plugin should check if the attachment has a parent post before doing the redirect to avoid this problem.

    Best regards.

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Samuel Aguilera

    (@samuelaguilera)

    OK, fixed myself.

    If anyone needs it, do this:

    In the frontend/class-frontend.php file go to line 644 a you’ll find this:

    if ( is_attachment() && isset($post->post_parent) && is_numeric($post->post_parent) ) {

    Leave it like this:

    if ( is_attachment() && isset($post->post_parent) && is_numeric($post->post_parent) && ($post->post_parent != 0) ) {

    And no more 310 errors when attachment has no parent post 😉

    hey i put a post here because im encountering a 310 error after changing my wordpress folder from ‘blog’ to ‘community’
    I searched around and realized its not a browser issue.
    I just did a renaming from the directory housing wp from ‘blog’ to ‘community’

    I did a search and replace in the database and files and fixed all direct links to the correct path.

    I also tried a plugin called Select Permalink Fix & Disable Canonical Redirects Pack Permalink Fix & Disable Canonical Redirects Pack
    but this did not help either

    I went through my wp-options in the db and also made changes where I saw they needed updating.

    here is what is in my htaccess file

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

    # END WordPress

    What I am noticing is that when I type in the url http://www.stpbabes.com/community it redirects to http://www.stpbabes.com/community/welcome
    what is this welcome page and why is it doing this? I cant find it anywhere and don’t understand why its trying to call it up instead of going to the index.php page.

    I can only view my site when I am logged in.

    Your help is appreciated!!

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    @samuel: that’ll be fixed in the next release.

    @luckygirl: please open a new support thread, this has nothing to do with my plugin, for which this was a support thread.

    Thread Starter Samuel Aguilera

    (@samuelaguilera)

    @joost: Thank you 😉

    I think the OP’s problem is what I’m facing but it’s no longer at that line. So I’m still facing that 310 problem

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] 310 error’ is closed to new replies.