Using .HTACCESS File Tips in Tamil

1,176

 3,059 total views

Every web developer must know what is .HTACCESS & How to use it!

.HTACCESS in Tamil Part #2

Sample Codes in .HTACCESS

# my first .htaccess stuff is here
# this is a comment line.
# custom 404 file
# url redirection
# url rewrite
# techtamil.com/500.html

ErrorDocument 404 /pagenotfound.html
ErrorDocument 500 500.html

# Redirection

Redirect /oldpage.html /newfileishere.html

Redirect / http://newtechtamil.com

# Rewrite
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^(.*).html$ $1.php [NC]

# http://yoursite.com/display.php?month=jan&year=2010&page=2

# http://yoursite.com/display-jan-2010-page-2

RewriteRule ^/display-([a-z]+)-([0-9]+)-page-([0-9]+) http://techtamil.com/display.php?month=$1&year=$2&page=$3

You might also like
2 Comments
  1. Siva Kumar says

    hi karthi,
    i m struggling with arrays in PHP, please clarify with examples… it will be more useful to me and my friends….

Comments are closed.