1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

404 to 301 Plugin - Be Careful

Discussion in 'Web Design' started by Carreira, Aug 16, 2016.

  1. Carreira

    Carreira Regular Member

    Joined:
    Sep 4, 2012
    Messages:
    479
    Likes Received:
    300
    I was using the 404 to 301 Plugin to redirect broken backlinks like many guys I know here do (those who use it read this).

    The plugin is harmful, it populates your site with backlinks for other sites that are stealth and only engines can read.

    I use wordfence so I got the mail explaining this, and when I went to verify it is indeed true.

    source:
    Code:
    https://www.wordfence.com/blog/2016/08/404-301-plugin-considered-harmful/
    I instantly took the plugin down, those of you who use it may want to do the same.


     
    • Thanks Thanks x 5
  2. asap1

    asap1 BANNED BANNED

    Joined:
    Mar 25, 2013
    Messages:
    4,961
    Likes Received:
    3,186
    Thank for sharing this info.
     
  3. osberht

    osberht Registered Member

    Joined:
    Apr 27, 2016
    Messages:
    77
    Likes Received:
    11
    Goodjob to wordfence then. Really shady to put those terms on gnu public license. Makes me wonder about some plugins that I had installed.
     
  4. mickyfu

    mickyfu Jr. VIP Jr. VIP

    Joined:
    Dec 14, 2011
    Messages:
    7,580
    Likes Received:
    21,581
    Occupation:
    King Of Crypto C
    Location:
    Solihull Young Offenders
    I just write it in htaccess to redirect 404 to home page. Never done my sites any harm.
     
    • Thanks Thanks x 1
  5. ChanzGrande

    ChanzGrande Elite Member

    Joined:
    Feb 16, 2008
    Messages:
    2,487
    Likes Received:
    1,180
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    This is true of the strategy, but those using the actual plugin referenced might want to reconsider as OP suggested. Definitely the strategy remains sound though mickyfu, so thanks for reminding people of that.
     
  6. RedMango

    RedMango Power Member

    Joined:
    Jul 15, 2010
    Messages:
    548
    Likes Received:
    204
    Location:
    UK
    Literally just added this bloody plugin last night, removed now. Thanks, will do it manually - I'm just so fucking lazy.
     
  7. Mr.Charles

    Mr.Charles Jr. VIP Jr. VIP

    Joined:
    Apr 6, 2012
    Messages:
    450
    Likes Received:
    50
    Gender:
    Male
    Occupation:
    Web Developer
    Location:
    Google
    Home Page:
    Shit, I am going to read, thanks for the info.
    Edit:

    By the way, some alternative for replace this plugin?
     
  8. Abuzzz

    Abuzzz Junior Member

    Joined:
    Jun 26, 2016
    Messages:
    104
    Likes Received:
    16
    Gender:
    Male
    I replaced it with Redirection.I don't know if it's good or not but it has 500k installs..
     
  9. BassTrackerBoats

    BassTrackerBoats Super Moderator Staff Member Moderator Jr. VIP

    Joined:
    Mar 10, 2010
    Messages:
    17,342
    Likes Received:
    31,827
    Occupation:
    Selling CPA Sites
    Location:
    Not England
    Home Page:
    Plugins are usually the lazy man's way or the non techie way's only option.

    You can redirect the 404 pages to any page on your site in htaccess just as @mickyfu shared above.

    If you do not know how to do that, pay a guy 5.00 to do it for you.

    @Carreira, thanks for sharing this.
     
  10. Mr.Charles

    Mr.Charles Jr. VIP Jr. VIP

    Joined:
    Apr 6, 2012
    Messages:
    450
    Likes Received:
    50
    Gender:
    Male
    Occupation:
    Web Developer
    Location:
    Google
    Home Page:
    thanks @Abuzzz. I am going to see, but I think I can make a simpre rule in .htaccess and share it here.
     
    • Thanks Thanks x 2
  11. Floopa75

    Floopa75 Jr. VIP Jr. VIP

    Joined:
    Feb 6, 2014
    Messages:
    894
    Likes Received:
    766
    Gender:
    Male
    Occupation:
    Summit Rank Link Building
    Location:
    Canada
    Home Page:
    Got freaked out for a second. I use redirection plugins, doing it through .htaccess is something that I hadn't thought of. Fortunately I am using the "Redirection" plugin and not 404 - 301.

    I don't have the code personally, I haven't got it sorted yet, but make sure to everyone who will be doing it in .htaccess to paste the code after "# END WORDPRESS" in your .htaccess. Failure to do so will result in the redirects being overwritten every time WP updates.
     
  12. Vlad D

    Vlad D BANNED BANNED

    Joined:
    Apr 21, 2016
    Messages:
    280
    Likes Received:
    128
    Go to cPanel -> file manager -> check " show hidden files (dot files) " open .htaccess and add this code at the bottom :

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . / [L,R=301]
     
    • Thanks Thanks x 1
  13. Carreira

    Carreira Regular Member

    Joined:
    Sep 4, 2012
    Messages:
    479
    Likes Received:
    300
    Thanks for the code. Will help a bunch of people who don't know how to do it manually, like me.
     
    • Thanks Thanks x 1
  14. Mr.Charles

    Mr.Charles Jr. VIP Jr. VIP

    Joined:
    Apr 6, 2012
    Messages:
    450
    Likes Received:
    50
    Gender:
    Male
    Occupation:
    Web Developer
    Location:
    Google
    Home Page:
    Multiple Solutions:

    1- Edit 404.php and will add this code:
    Code:
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".get_bloginfo('url'));
    exit();
    ?>
    
    2- Using Redirection Plugin:
    Code:
    https://wordpress.org/plugins/redirection/
    
    Code:
    https://wordpress.org/plugins/link-juice-keeper/
    
    Code:
    https://wordpress.org/plugins/all-404-redirect-to-homepage/
    
    by the way, this htaccess rule not work, because wordpress already rewriting the URL when the requested file doesn't exist.
    Code:
    ErrorDocument 404 http://www.yousite.com
    and this either, because replace the main rule of wordpress

    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . / [L,R=301]
    
     
    • Thanks Thanks x 1
    Last edited: Aug 23, 2016
  15. hell11

    hell11 Registered Member

    Joined:
    Jan 30, 2014
    Messages:
    95
    Likes Received:
    8
    just use Broken Link Checker !! you will be fine !
     
  16. DutchStuff

    DutchStuff Junior Member

    Joined:
    Aug 2, 2016
    Messages:
    126
    Likes Received:
    25
    Gender:
    Male
    Location:
    The Netherlands
    Stay away from this. OP is right. Most plugins I tried in WP are doing this crap. Just read the reviews.. Chiqui3d uses the right option!
     
  17. philsfog

    philsfog Junior Member

    Joined:
    Jan 26, 2012
    Messages:
    150
    Likes Received:
    24
    thank for this valuable info. it save me from headache.
     
  18. PeterPerseo

    PeterPerseo Jr. VIP Jr. VIP

    Joined:
    Jun 22, 2013
    Messages:
    229
    Likes Received:
    69
    Gender:
    Male
    Location:
    Italy
    • Thanks Thanks x 1
  19. Carreira

    Carreira Regular Member

    Joined:
    Sep 4, 2012
    Messages:
    479
    Likes Received:
    300
    Seems shady to me, not trusting the guy anymore.
     
  20. Vlad D

    Vlad D BANNED BANNED

    Joined:
    Apr 21, 2016
    Messages:
    280
    Likes Received:
    128
    Don't do this guys , my mistake . It will de-index your home page .

    I'm still using 404 to 301 after the update made by the owner and after reading his article .