sangkrit

Easiest Way Of Generating A Robot.TXT File For Your Website

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 [...]

How To Block Visitors From Specified Domain Or IP Addresses ?

Everybody wants traffic but here is an option to block traffic from certain domain or IP.

[...]

How You Can Stop Hotlinking In Your WordPress Site ?

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.

When Others Are Stealing Your Bandwidth By Linking Back To Your Images

[...]

How To Restrict Other Servers From Accessing Your Files ?

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 [...]

How To Configure Apache WebSite To Use Multiple Ports ?

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 [...]

Creating Temporary And Permanent Redirects Using Apache

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.

Difference Between Permanent And Temporary Redirects

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.

One Command LAMP Server Installation

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

Tasksel Method

Other than the above given method you may [...]

Page 1 of 3123