Posts Tagged ‘internet marketing’

.htacess file tutorial – useful tips

Wednesday, August 12th, 2009

Overview of the “application of principle”

Much of what we find on search engine optimization (SEO) blogs, internet marketing web-inars or your favorite web design news-feeds contain basic strategies to propel your website into the top SERP’s. While this is useful information, sometimes putting these strategies into practice for web designers, internet marketeers, digital strategists or web developers—is very misunderstood, and the ability to put it these strategies into practice, or apply it in a real world situation is lacking.

Much of this APPLICATION of PRINCIPLE—relies on technique, understanding multiple facets of design and development, technical knowledge, past experience (seeing what works and where), trial and error, keeping up with the changing landscape, and many many other factors. The point is that there are “many” and to be able to apply SEO and internet marketing with results—we need to understand strategy and principles as well as being able to apply it. The “apply” is usually taken for granted, and while there are hundreds of thousands out there talking about it, only a few of us know how to apply it with beautiful results!

One small but powerful thing to be aware of is a .htaccess file—here is some basic information

.htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration. The .htaccess file is placed inside the web tree, and is able to override a subset of the server’s global configuration; the extent of this subset is defined by the web server administrator.

Nowadays .htaccess can override many other configuration settings, mostly related to content control, e.g. content type and character set, CGI handlers, etc.

Below are some basic tips and uses of .htaccess file

1. Create a custom error page.
.htaccess makes it easy to create your own custom error pages. Just create your custom error page files and then add this code to your .htaccess file:
ErrorDocument 401 /401.php  
ErrorDocument 403 /403.php  
ErrorDocument 404 /404.php  
ErrorDocument 500 /500.php
(you should replace the “/500.php” or whatever with your own file path and name.)

2. Prevent directory browsing.
If you don’t include an index file in a directory, visitors can browse the directory itself. But preventing that is as easy as adding a single line to your .htaccess file:
Options All –Indexes

3.Block access to your .htaccess file
By adding he following code to your htaccess file will prevent attempts to access your htaccess file. This extra layer of security protects your htaccess file by displaying a 403 error message on the browser.
# secure htaccess file 
 
Â order allow,deny 
Â deny from all

4. Set the default page of each directory.
If you don’t want to use an index page in each directory, you can set the default page visited when someone reaches (like an about page or a page offering the newest content) that directory by adding this:
DirectoryIndex news.html
(And of course you’d replace the “news.html” bit with whatever you want to use as the default.)

5.Redirect everyone to different site except few IPs
If you want to redirect all the visitors to a different IP. Also give access to certain  few IPs. You can use the code below:
ErrorDocument 403 http://www.youdomain.com 
Order deny,allow 
Deny from all 
Allow from 124.34.48.165 
Allow from 102.54.68.123

6. Redirect Visitors While You Update Your Web Design Site
Update and test your site while visitors are redirected to the page of your choice:
order deny,allow 
deny from all 
allow from 123.123.123.123
ErrorDocument 403 /page.html
allow from all
Replace 123.123.123.123 with your IP address
. Also replace page.html with the name of the page you want visitors to see.

7. Disguise your file types.
You can disguise all of your file types by making them appear as PHP files. Just insert this snippet in:
ForceType application/x-httpd-php

8. Protect your site from hotlinking.
The last thing you want is for those stealing your content to also be able to embed the images hosted on your server in their posts. It takes up your bandwidth and can quickly get expensive. Here’s a way to block hotlinking within htaccess:
view plaincopy to clipboardprint? 
RewriteEngine On  
RewriteCond %{HTTP_REFERER} !^$  
RewriteCond %{HTTP_REFERER} !^http://([ -a-z0-9]  \.)?domain\.com [NC]  
RewriteRule \.(gif|jpe?g|png)$ – [F,NC,L]
(Of course you’ll want to replace the domain\.com with your own domain name.)

9. Restrict file upload limits for PHP:
You can restrict the maximum file size
for uploading in PHP, as well as the maximum execution time. Just add this:

php_value upload_max_filesize 10M  
php_value post_max_size 10M  
php_value max_execution_time 200  
php_value max_input_time 200
Line one specifies the maximum file size for uploading; line two is the maximum size for post data; line three is the maximum time in seconds a script can run before it’s terminated; and line four is the maximum amount of time in seconds a script is allowed to parse input data.

10. Force a file to download with a “Save As” prompt.
If you want to force someone to download a file instead of opening it in their browser, use this code:
AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4

11. Redirect to a secure https connection
If you want to redirect your entire site to a secure https connection, use the following:
view plaincopy to clipboardprint? 
RewriteEngine On  
RewriteCond %{HTTPS} !on  
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

12.Block script execution.
You can stop scripts in certain languages from running with this:
Options –ExecCGI  
AddHandler cgi-script .pl .py .php .jsp. htm .shtml .sh .asp .cgi
Just replace the types of scripts you want to block.

13. Set up a 301 redirect.
If you move around the structure of your site and need to redirect some old URLs to their new locations, the following bit of code will do so for you:
view plaincopy to clipboardprint? 
Redirect 301 /original/filename.html http://domain.com/updated/filename.html

Important Note:

1-Be careful of spelling- .htaccess is not forgiving of spelling errors.
2-htaccess is case sensitive. If something is shown in the examples with a capital letter, make sure it’s capitalized in your htaccess file.

For readers interested in advance knowledge, I will recommend the following guides:
http://www.askapache.com/htaccess/apache-htaccess.html
http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
http://www.noupe.com/php/htaccess-techniques.html
http://www.thomsonchemmanoor.com/16-useful-htaccess-tricks-and-hacks-for-web-developers.html
http://frontdeskapp.com/blog/5-htaccess-tricks-every-webmaster-should-know/

Source: http://www.sem-seo-resources.com/node/63

tweet – twitter and your web designs

Thursday, April 30th, 2009

69290979

I never thought I would be attracted to such a social gossip tool like Twitter but it has become very popular over the past 10 months or so. Gaining magnetic social media attention is at the core of SEM ( search engine marketing ) right now and there are plenty of places to share and potentially get your prize worthy content linked to… but Twitter… come on ?

As a web designer and as creative digital strategies being at the core of this art form – for allowing your interactive work to be seen and heard – I came late to the Twitter game. So if your like me and doubted it, then try it out and you will see some nice benefits to add to your arsenal of inbound linking strategies, gaining insights about industry news and pumping you to the top of SRP’s.

Follow people that you wouldn’t normally get to speak with like industry leaders who only have 140 characters to give the latest pearls of wisdom. The search engine in Twitter is robust and is in real time so you will find your Tweets being public domain for the spiders. Ask questions and you will find that they become answered in a concise (limit to 140 characters) form… it really can boost your presence and awareness and help our web designs and flash designs to make it our there and to flourish. So flap your little tweet-tweet wings and fly about to discover it’s true benefits.

A New Dawn in Web Design

Saturday, January 10th, 2009

Does the web designer of today need to be someone that can formulate great looking interactive design and super charged creative concepts ? …or does it require much more than that ?

Web designers in today’s 2.0 web landscape should also be communicators of sure-fire function and logical, simplistically elegant end user experiences.

Did someone say “strategy” …or is that the internet marketer’s job, or the digital strategist’s responsibility? Does your web design crave an inbound marketing strategy to generate leads for your clients, a content rich search engine friendly environment, viral marketing features ? A blog that has purpose? A web designer will need to know exactly where to inject these web design strategies into the work, or we risk the marketeers claiming ‘form without function’ and I can hear some people-who’s job it is to say this “it looks nice, but….where’s the value?”

“We want motion and animation” an excited client calls out!

And…what about getting it all done? Without knowing which technology or combination of technologies we should be use, to effectively and efficiently produce the web design, so that it’s on budget and on time, you need extensive knowledge. Knowledge in this case is a catalyst for creativity.

So — what does all this mean? An even newer breed of “interactive art director” and “interactive writer”. In some interactive design firms – we call this person a “hybrid”, or a person with the special talent to seamlessly integrate both the right brain thinking and left brain thinking principles of good web design and development. Some web design companies employ an acting internal “bridge” group, used to translate with knowledge of both languages (design language and development language). The ability to communicate verbally to others encompassing the full vision, and communicate with visual and functional interactive prototypes is now required for anyone that is serious about web design, interactive creative direction, and interactive copy writing.

Without the old school back-and-forth – and the days when the developer and web designer pass projects between each other while the vision is attempted to be matched — can now be eliminated. Without the elimination of this, often time consuming balancing act (too often work that is either sub-par or way over budget is the result) we are left still in the stone ages of web design. Besides there is so much creativity in web development mixed within a web designer. A true feeling of acomplishment can be attained when you can communicate with the full range of tools web design is ment to encompass, not to mention self-reliance, and the potential to create something that has never been tried before!