How to redirect folders (and all the link)

For example, if we want to redirct http://kingphp.com/php/ to http://kingphp.com/wordpress/

We could use mod_rewrite. Put this in your .htaccess file

Options +FollowSymLinks
RewriteEngine On
RewriteRule /php/(\w+).html /wordpress/$1.html [R=301,L]