robots.txt is a file with web server access restrictions for search engines.
It should be located only in the root directory of the site, and contain only lowercase letters, that is, “robots.txt”, and not “Robots.txt”.
Category Archives: Web server
How to remove date and author from WordPress posts?
There are several ways to disable the display of the date or the author on the recording page.
Before starting any changes, I recommend backing up the data.
Solution of the error when opening wp-admin after the update
I noticed somehow when upgrading WordPress to version 4.7 that after the update wp-admin does not open, instead of the admin window there is an empty window and in the address bar of the browser the following address:
Continue reading “Solution of the error when opening wp-admin after the update”Access-Control-Allow-Origin (CORS)
CORS (resource sharing between different sources) is browser technology that allows a web page to access resources from another domain.
To enable CORS in Apache2, you must first activate the headers module, in Ubuntu Server, you can do this with the command:
Continue reading “Access-Control-Allow-Origin (CORS)”Information about using .htaccess
.htaccess – (hypertext access) additional configuration file for the Apache web server and similar servers.
In order for the file to be processed by the Apache server, the “AllowOverride All” option must be in the configuration file for the specified directory.
Install and configure Nginx
nginx (engine x) — it is a web server and reverse proxy server, as well as a mail proxy server.
Install on Ubuntu with the command:
Setting up nginx logs
I will give examples of setting logging for nginx.
To change the log settings, open the nginx configuration file in any text editor:
Solution PHP Notice: Use of undefined constant x — assumed ‘x’
I once noticed the following notification when writing a PHP script:
PHP Notice: Use of undefined constant uid - assumed 'uid' in /scripts/file.php on line 31 PHP Notice: Use of undefined constant value - assumed 'value' in /scripts/file.php on line 32
Continue reading “Solution PHP Notice: Use of undefined constant x — assumed ‘x’”
Script to send SMS via Goip4 gateway for ABillS
I will give an example of a PHP script to which I send SMS messages through the GoIP4 gateway.
First, we choose tariffs with only monthly charges:
Continue reading “Script to send SMS via Goip4 gateway for ABillS”Install phpMyAdmin
phpMyAdmin is a web application written in PHP that allows you to administer MySQL databases through a browser.
The easiest way to install phpMyAdmin is to download the archive with the latest version from the official website www.phpmyadmin.net and unpack it into the desired www directory, then you can open http://HOST/phpmyadmin/setup/ in the browser and follow the instructions. After that, move the config.inc.php file to the phpmyadmin root directory and close access to /setup/ or delete it altogether.
Continue reading “Install phpMyAdmin”
