WordPress.org

Ready to get started?Download WordPress

Forums

Quick Page/Post Redirect Plugin
[resolved] index.php path doesn't seem to work - no input file specified (2 posts)

  1. am450
    Member
    Posted 1 year ago #

    Hi - please excuse me for my lack of knowledge in this area.

    My client is not getting nearly the hits he was getting prior to my revamp. He has a ton of online, dead links to his site that are reporting a near white screen of death that says: No input file specified.

    The url looks like this: http://www.mysite.com/index.php/stock-home-plans/stone-mountain-cabins-residential-home-plans

    But I need to redirect to -

    http://www.mysite.com/

    I tried the quick redirects.. but its not working.. am I missing something?
    Thanks

    http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/

  2. prophecy2040
    Member
    Plugin Author

    Posted 1 year ago #

    That sounds like a .htaccess file error.

    Go to your settings/permalinks to rebuild your permalinks and then try again.

    Additionally, if you want to eliminate any 404 errors, you could add this to your functions.php file. It will redirect all 404s to an actual existing page (change the /new-location-page-here/ page URL below to the one you want them redirected to):

    add_action('template_redirect','personal_404_redirect_override',1);
    function personal_404_redirect_override(){
          global $wp;
                if(!is_admin() && is_404()){
                      wp_redirect('/new-location-page-here/',301);
                      exit;
                }
          }
    }

    Hope this helps,
    Regards,
    Don

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic