.HTACCESS - Internal Redirect .php files to .html files (SEO friendly)

# Redirects all files that end in .html to be served from filename.php so it looks like all your pages are .html but really they are .php RewriteRule ^(.*)\.html$ $1.php [R=301,L]

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.