Okay I have to change all the links on tons of html pages from one url to another...is there a fast way or doing this...any scripts or programs?? thanx
Changing a link on hundreds of html pages
Collapse
X
-
UltraEdit has a "change in files" option. So do several other proggies...I'm sure someone will be along shortly with a better suggestion...Looking for PHP/MySQL solutions? Check out Cyboriginal - custom scripts, installation services and more. -
Try using include files. SSI or php includes. Whatever you have to work with. Split every page up into sections. Use templates!Comment
-
-
What he said - I use SSI all the time in my own pages, it saves a HEAP of time in administration.Originally posted by Brad Xtremepay
Try using include files. SSI or php includes. Whatever you have to work with. Split every page up into sections. Use templates!
It also means that you can write a template, that has an SSI banner, sidebar, copyright and then you can use PHP to generate your page content - meaning that you only have administer a very small amount of pages instead of 1000s of them.
I remember my first website which I started supporting for a company, it was written in straight html, and had 64,000 pages. Can I say PAIN IN THE ASS?! After I changed to ASP, they had 1 database, 1 template and 5 asp files. Way easier to manage. I would definitely recommend this route!Comment
-
nope.... just open up one file. Find the string you wanna replace, open up Find & Replace, select Source Code, put in the string to find, and the string to replace it with, and select either, This Doc, Specify a folder, or Entire Site.Originally posted by flashfire
Hey amp with DWMX dont I have to open all the files?? Can you give me some more info?
Thanx Guys
done in seconds.SIG TOO BIGComment
-
if you plan to do it on your computer dreamweaver or homesite can do it.
here's what I'm using if I want to modify links on a server :
find . -type f | xargs perl -pi.bak -e 's/old_string/new_string/g'
it works recursivelly on the folders and makes a backup file too (.bak) which you can skip of course if you don't want it.SEO Mogul | ICQ: 163671223Comment
-
Does DWMX do this on remote files as well? Or just local files? Remote would be slow as shit (assuming it would have to use FTP, as opposed to opening a Telnet or SSH session, which I doubt it can do), but even via FTP, remote search & replace might have it's uses in some cases for me.Originally posted by Amputate Your Head
nope.... just open up one file. Find the string you wanna replace, open up Find & Replace, select Source Code, put in the string to find, and the string to replace it with, and select either, This Doc, Specify a folder, or Entire Site.
done in seconds.Comment
-
Search and replace 98 can do it. It's free
Looking for a KICK ASS TEEN SPONSOR? Check out ROYAL CASH - THE KING OF TEEN!
Incredible webmaster tools FHGs, Morphing Blog and RSS Feeds, Embedded FLV & WMV Videos.
With TOP RATIO Sites like
ATMovs.com | iTeenVideo.com | TeenSexMovs.com | TeenSexMania.com
Comment
-
-
You can use a stream editor like sed that will do it a breeeeze

xxxoutsourcing.com
ICQ:119936 | Aim:xxxoutsourcing | MSN:msn@ xxxoutsourcing.com | Yahoo:xxxoutsourcing
Submitters, Designers, Programmers, Cartoonist, Creative Writers, Video & Photo Editors
Convert your Paysite into a cartoon site convert2toons.comComment
-
Damn, I remember this tool from *years* ago! Do they offer S&R on the various Unix servers?Originally posted by leg4
bk search and replace on the server
Gotta love Regular Expressions!
BTW, of course PERL, PHP, Python, shell, even C++ or even C could do it. It's just a matter of what's easiest to do it in.Comment
-
The best program to do that is TextPipe Pro!

$25-$50 Per Signup, 60%-70% Rev Share, 125+ Sites, Exclusive Sites, tons of free content
70,000+ FHG's, Free Domain Hosting, 10,000+ Hosted FLV's - Need Live Cams? Check out ItsLive.com
Fetish Hits paying affiliates since 2001 - Every time on time!Comment
-
the only prob is you have to have php files, so you can't do it for galleries.Originally posted by gin
do it right.. so you can change it all anytime you want..
make a text file and put the url into it..
might be ghetto but it worksPHP Code:$filename = ('../url.txt'); $info = file($filename); $url= $info[0]; <?=$url;?> anywhere needed..
SEO Mogul | ICQ: 163671223Comment
-
Textpad do em all in find replace 1 pressComment
-
promote our original content 30 niche site package with ccbill:
www.gashflash.com/affiliates/Comment
-
Perl can do it. Search google for "perl find and replace"Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.comComment
-
If you want to do it on your desktop, there are shitloads of programs out there.
If you want to do it on your server you can do it via PHP or PERL using regex (regular expressions).
Might cost you $10-$20 for someone to code it if you cant do it yourself.Video Ipod Porn Site with Affiliate Program. http://www.podies.com
Free 1:1 Adult Webmaster Banner Exchange.Comment
-
With the best editor around: Homesite it's an easy jobComment





Comment