GithubHelp home page GithubHelp logo

cahuk / fix-internal-links Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 136 KB

Эта программа работает с неработоспособными (битыми) внутренними ссылками статей вашего сайта

PHP 100.00%

fix-internal-links's Introduction

This program is in your articles inoperative (broken) internal links. 
The system finds its anchor and gets drawn in Google. Then overwrite the old links in the article to the new.

System writes the log (./log/) in every article with the id which starts if fails, then when you restart the system starts from the material on which it stopped/

If after we got to the page with the CAPTCHA, then the system does a delay of 2 hours. If we again find ourselves on such a page, the system again uvelichiet delay time according to the interval

The program was tested under Wordpress, but can work with other CMS or applications with a special setting

To start for wordpress:
	1. Add in file ./fix-internal-links.php constant HOST = 'yourdomain.com' the domains, to which you are relinking;
	2. Add your email in array $_report_email = array( 'yours@email1', 'yours@email2' )	
	3. If you plan to re-start the system from the beginning, then you need constant DELETE_LOG_AFTER_COMPLETE set to true, but log file will be deleted
	4. Specify access to a database file ./class/Db.php ($dbserver = 'localhost'; $dbuser = 'user'; $dbpassword = 'password'; $dbname = 'db_name';) to work with articles;
	5. execute a query to create a table with the results already obtained from the file links_query_cache
	6. Recommend run this program through ssh because the data in the browser script can take a long time. But if you believe that the site is not a lot of material, or a little broken links, and then you can run through a browser	www.yourdomain.com/fix-internal-links.php

fix-internal-links's People

Contributors

cahuk avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.