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.
HTML Form submission technique via jQuery (gracefully degrades)
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:
Web Securities (Preventing SQL Injection, XSS, XSRF / Form Spoofing)
- 1. SQL Injection
- 2. Cross Site Scripting (XSS)
- 3. Cross Site Request Forgery (XSRF)