Category Archives: Web Optimization
HTML, PHP , JS , CSS Minifier
http://compressor.ebiene.de/ ( JS and CSS )
http://tools.php-suit.com/mini/ ( PHP )
http://www.textfixer.com/html/compress-html-compression.php ( HTML )
http://code.google.com/p/minify/ ( combine js and css into a php file )
usefull links
Link external CSS as PHP file
<link rel=”stylesheet” type=”text/css” href=”datasprites2.php” />
Password Protected Folders
on htaccess file
AuthType Basic
AuthName “This Area is Password Protected”
AuthUserFile /full/path/to/.htpasswd
Require valid-user
on htpasswd
username:password
Redirect (301) htaccess file
Redirect a single page
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
Redirect 301 /oldpage2.html http://www.yoursite.com/folder/
Redirect an entire site
Redirect 301 / http://newsite.com
Gzip CSS,JS using htaccess file
# BEGIN GZIP
#replace “[" with ""
[ifmodule mod_deflate.c]
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
[/ifmodule]
# END GZIP