Redirect all files with certain extension – onlinecode

Redirect all files with certain extension – onlinecode

In this post we will give you information about Redirect all files with certain extension – onlinecode. Hear we will give you detail about Redirect all files with certain extension – onlinecodeAnd how to use it also give you demo for it if it is necessary.

You used to have the majority files using an extension like .php and have changed everything to .htm so using a 301 redirect you can update all links to use the new extension.

All .php files redirect to .htm files, such as onlinecode.com/file.php to onlinecode.com/file.htm

Follow below example of All files with certain extension.

RewriteEngine On
RewriteCond %{REQUEST_URI} .php$
RewriteRule ^(.*).php$ /$1.htm [R=301,L]

Please follow and like us:

Hope this code and post will helped you for implement Redirect all files with certain extension – onlinecode. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

  +  62  =  72

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US