Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Can I convert .aspx to .htm?

Can I convert .aspx to .htm?

Can I convert .aspx to .htm?

Hi all
I know there are some very bright guys out there...
I have inherited a website that is totally suffixed with .aspx, something I know nothing about, and which I am informed has been discontinued.
From a brief and not thorough test I appear to be able to rename them to .htm and then edit in Front Page.
Now, I have a folder of 67 documents, all .aspx, and filled with hyperlinks to .aspx addresses.
Is there any way I can set up an automated macro, or something, to trawl through the whole folder and replace aspx with htm in all filenames and their internal references?

That's my problem, is there a solution please?


RE: Can I convert .aspx to .htm?

ASPX pages will most likely include programming that the server must process prior to sending it to the browser as HTML. So renaming the ASPX files to HTML will disable the function of the web pages. Without fully understanding the contents of the ASPX files, I do not recommend proceeding as you intend.

If you're okay with breaking all those ASPX pages, you can rename references of "ASPX" to "HTML" within the files with a tool like this. http://stefanstools.sourceforge.net/grepWin.html

You can use a renaming utility to replace the extensions on the filenames. http://www.antp.be/software/renamer

FrontPage has been discontinued by Microsoft. ASPX has not been discontinued. I sense you're setting yourself up for a big mess. bigsmile

RE: Can I convert .aspx to .htm?

I agree with spamjim.

They have aspx for a reason. Somewhere inside the code is aspx code that needs to be run for the page to work correctly.

Simply removing it all is very likely going to break the web site functionality.

I would understand exactly why they are in aspx format before attempting to change them. What exactly is the ASPX doing.

Beyond that, as mentioned ASP is alive and well.

Phil AKA Vacunita
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: Can I convert .aspx to .htm?

Thanks to both.

I had a feeling that there should be more to it than I knew, and you have confirmed it.
Holds hands up and backs away slowly...

RE: Can I convert .aspx to .htm?

A bit more on FrontPage...

FrontPage's last update was a decade ago and the last full release was in 2003. Microsoft replaced FrontPage with Expression Web, which was also also discontinued a couple years ago.

Expression Web is now free and would make a good replacement for an aging FrontPage.


RE: Can I convert .aspx to .htm?

hi Guthro

The situation is "resolved" inas much as I have walked away...
Thank you for the input, I was unaware of any group like that.
In fact I do have access to the originals, but the conversion I was looking for was in the other direction.


RE: Can I convert .aspx to .htm?

When I said "community is free", it's a version of the software that is free called Community edition. Might be of use in the future. It's an excellent piece of software.
Sometimes walking away from such projects is best or starting from scratch.
Good luck.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close