Tuesday, August 28, 2012

htaccess dynamic url rewrite



root/.htaccess
profile.php?uname=bikash
it will show /bikash
------------------------------------
RewriteEngine On
RewriteBase /
RewriteRule ^confirmemail/(.*) confirmemail.php?code=$1
RewriteRule ^resetpassword/(.*) resetpassword.php?code=$1
RewriteRule ^resendconfirmation/(.*) resendconfirmation.php?userid=$1
RewriteRule ^widget$ widget.php
RewriteRule ^profile/(.*)/(.*) redirect.php?id=$1&username=$2
RewriteRule ^([^/.]+)(\/)?$ profile.php?uname=$1
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
-------------------------------------------------------------
if you helpful my code please donate some few amount to
developing and free to post.
-------------------------------------------------------------

No comments:

Post a Comment