HighDots Forums  

htm to aspx

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss htm to aspx in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
WebDevStuff
 
Posts: n/a

Default htm to aspx - 03-24-2009 , 03:51 AM






I currently have a pure .htm based web site. I'd like to make my site ALL .aspx
pages, but don't want to do an file rename for each page (huge site) . I can't
do a search and replace on the file extension -so what is the best way to do
this?

I can easily add the aspx page directives in my main template, but this file
extension rename is something I can do without resorting to scripting...

Thanks in advance...


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: htm to aspx - 03-24-2009 , 01:01 PM






Quote:
I currently have a pure .htm based web site. I'd like to make my site ALL
.aspx
pages, but don't want to do an file rename for each page (huge site) . I
can't
do a search and replace on the file extension -so what is the best way to
do
this?
Mod rewrite would be the way - I have used ISAPIRewrite to do this kind of
thing on Windows servers in the past.

You do know that DW has dropped support for .NET with the CS4 release,
right?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"WebDevStuff" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I currently have a pure .htm based web site. I'd like to make my site ALL
.aspx
pages, but don't want to do an file rename for each page (huge site) . I
can't
do a search and replace on the file extension -so what is the best way to
do
this?

I can easily add the aspx page directives in my main template, but this
file
extension rename is something I can do without resorting to scripting...

Thanks in advance...



Reply With Quote
  #3  
Old   
Mad Dog
 
Posts: n/a

Default Re: htm to aspx - 03-24-2009 , 11:30 PM



WebDevStuff wrote:
Quote:
I currently have a pure .htm based web site. I'd like to make my site
ALL .aspx pages, but don't want to do an file rename for each page
(huge site) . I can't do a search and replace on the file extension
-so what is the best way to do this?

I can easily add the aspx page directives in my main template, but
this file extension rename is something I can do without resorting to
scripting...

Thanks in advance...
This is from a recommendation Joe Makowiec gave me here recently. I haven't
had a chance to set it up yet but it should work for what you want too:

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Actually, it's a single (set of) rule(s) which will work for all files.
In fact, the recipe on the page linked above will first look for a file
with the new extension before it rewrites; otherwise, it gets the file
with the old extension. Look for "Backward Compatibility for YYYY to
XXXX migration".




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.