WordPress.org

Ready to get started?Download WordPress

Forums

Redirect 301 (3 posts)

  1. rotello
    Member
    Posted 3 years ago #

    I ve seen many people had this "function.file-get-contents" problem...
    i had too, and i solved it ( i hope)....
    but now for some reason Google see some of this page and thus it reports errors:
    example

    http://www.grappling-italia.com/2577/2009/function.file-get-contents
    Does not exists
    BUT
    http://www.grappling-italia.com/2577/2009/
    does exist

    so the best way is a 301 to "patch" all this broken links...
    how can I make a 301 redirect ??
    the simple command
    i d like to redir all */*/function.file-get-contents to */* , if uou get what i mean.. if that is not possible also a good
    */*/function.file-get-contents --> main site is OK.

  2. JohnnyWhite2007
    Member
    Posted 3 years ago #

    All broken links (404 errors) can easily be fixed by adding the following line in your .htaccess file.

    ErrorDocument 404 http://www.grappling-italia.com

    This way when someone goes to a page that does not exist anymore, they will be taken to your main page of your site.

  3. rotello
    Member
    Posted 3 years ago #

    Thanks man for the quick reply! I think I didn't express well (Sorry I m Italian and I ve study english at school)

    My point is that
    http://www.grappling-italia.com/2577/2009/function.file-get-contents
    is broken, BUT
    http://www.grappling-italia.com/2577/2009/
    is working
    Thus i d like to set that all *function.file-get-contents file should redirect to above folder.
    having No broken link and a correct redirection.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic