#Delete old .htaccess - don't overwrite. #Upload new .htaccess in ascii mode and chmod 777 ErrorDocument 404 /blog/katou/index.html #Options +ExecCGI #AddHandler x-httpd-php5 .htm .html .php #Redirect permanent ^[a-f][1-9]*.html /a1.html order deny,allow #RedirectMatch \/img\/(.*) http://sample.com/image/$1 #RedirectMatch ^[a-f][1-9]*.html /test.html