Welcome to WebmasterWorld Guest from 54.144.72.150

Forum Moderators: incrediBILL

Message Too Old, No Replies

change multiple extensions

     
10:30 pm on Mar 12, 2011 (gmt 0)

New User

5+ Year Member

joined:Nov 26, 2010
posts: 19
votes: 0


I have a website I am adding alot of pages too. The pages I am adding have the extension .htm and I need them to be html. IS there a program that can do a mass change on file extensions?
10:53 pm on Mar 12, 2011 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14624
votes: 88


At the command line in Windows you can rename them all at once:

rename *.htm *.html

or in Linux at the command line:

mv *.htm *.html
4:03 pm on Mar 15, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Be sure to add a rewrite rule to avoid losing any indexed links.