Tuesday, May 18, 2010

.HTACCESS


.HTACCESS

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

ErrorDocument 404 /pagenotfound.html
ErrorDocument 500 500.html

# Redirection

Redirect /oldpage.html /newfileishere.html

Redirect / http://sibitherocker.ning.com

# Rewrite
Options +FollowSymlinks
RewriteEngine on

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

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

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

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

No comments:

Post a Comment

do u hav any doubts just mail us.our team will find the solution for it and we will clarify it as soon.



regards;
S-TECHNOLOGIES team