Apache htaccess : Redirect Old URLs to new URLs after Rewrite URLs have been applied

.htaccess (Hypertext Access) files is a configuration file on Apache web server. It allows users to do many powerful features just by writing few lines. As of wikipedia, the most common usage of .htaccess files are follows:

  • Authorization, authentication
  • Customized error responses (ErrorDocument)
  • Rewriting URLs (mod_rewrite)
  • Cache Control

Carousel of JS / jQuery, PHP with JSON File that gracefully degrades

I decided to create a carousel which will be efficient and offer graceful degradation. The only Carousel I came across which offers such feature is the one of Yahoo! Canada (Featured Area of Home Page). Turn off the JS, and you will still see the same layout, with each Items on the right now acting as a link. Upon clicking them will take you to their corresponding page.

Graphing Calculator in Turbo C (MS DOS)

This is a Graphing Calculator I made many years ago (I think back in 2005). Back in 2005 was the first time I got introduced to programming in Turbo C.

Tags:

HTML Form submission technique via jQuery (gracefully degrades)

Since I started using jQuery (~10 months ago), I have been mostly using jQuery's $.ajax function for form submission as it provides an easy way to post form values and retreive JSON format easily. But, when using Javascript, there's always the question of 'graceful degradation'.
Tags:

Useful Simple CSS Cross Browser Tricks: !important

The CSS !important keyword is a useful keyword for Old browsers (IE-6, IE 5.5) as well as new browsers.

For new browsers, it can be used to override all other values, for example:

Tags:

Web Securities (Preventing SQL Injection, XSS, XSRF / Form Spoofing)

Web security are an important and essential feature of any Web Application. Its important for any Web Developer to secure Web Applications from external attacks as much as possible. Recently, I have been working on implementing Web Security and decided to write an article on how to secure web applications from the following attacks:
  • 1. SQL Injection
  • 2. Cross Site Scripting (XSS)
  • 3. Cross Site Request Forgery (XSRF)
Tags:
Syndicate content