redirect domain only to php files htaccess code example Example: htaccess redirect to html page RedirectMatch 301 ^/blog/about /blog/about.html