A robots.txt is a text file kept on your website’s home directory i.e., Public_HTML. The file is checked by all search engines spiders before they start crawling your website’s content to know which files, file types and directories are not allowed to be archived. So by using a Robot.Txt file you can exclude [...]
Everybody wants traffic but here is an option to block traffic from certain domain or IP.
Hotlinking means showing images from other sites which increases bandwidth usage. You can stop Hotlinking in your WordPress site. All you need to do is open .htaccess file present in your WordPress root directory and the given code.
If your site stores popular image files then for reducing bandwidth usage you can use this Apache hack for denying servers to access your files. Open your sites .htaccess file for editing and add the following code:
<FilesMatch “.(gif|jpe?g)$”> SetEnvIf Referer “^http://([^/]*.)?mydomain.com/” request_ok = 1 Order Allow, Deny Allow from env=request_ok [...]
Open httpd.conf file in your host. Find Listen 80 and on the next line add Listen 8080 Find VirtualHost section for your Site config. Add *:8080. It should look like this: <VirtualHost *:80 *:8080> Restart Apache Test your work by hitting your site to the new port number. Example: http://www.yoursite.com:8080
This would [...]
301 is a permanent redirect and 302 is a temporary redirect. 301 redirect is used when you want to redirect pages without penalizing them in search engines. And 302 redirect is used when you want to set up temporary redirect for keeping your page rank better in search engines. Learn more.
301 redirect is a permanent redirect whereas 302 is a temporary redirect. Permanent redirects tell search engines that old URL is out so that they can pull this new URL in it’s place. 301 is used when you want to preserve the page index and keep the page rank.
Installing LAMP Server
Open your Linux Terminal. Type: sudo apt-get install lamp-server^ Press Enter
Checking the Installation
Open a web browser Type: http://localhost/ If your browser shows the message: “It Works” then you have successfully installed LAMP
Other than the above given method you may [...]