Hi,
I'm transfering a copy of my site into php, and using Dreamweavers nifty replace function to change the extensions etc.
What I need to do now is change all the internal links from
.html and .htm to .php
What I need to do this and avoid also changing external links is a regex match.
All my interanal links are absolute or relative so what I need is something which will change:
I need something which will match something like this
href="../folder/file.htm"
or
href="/folder/file.htm"
or
href="../folder/file.html"
but not this
http="http://...........htm"
and then change just change every extension to .php while retaining the /folder/file that precedes it.
I f anyone can help me out with this I'd be really grateful - I'm not confident enough to play with this as I could mess up 100's of files, if I don't get it correct.
Thanks for the help in advance





Bookmarks