How I fix dead links:
I use free utility for text changing in category html files and windows command line commands for downloading and uploading files.
Free utility for text changing you can download here: http://www.gidsoftware.com/free.htm
You need RAT Replace Ascii & Text Utility
The main file is bat:
del /q catalog\*.*
FTP -v -i -s:catalog-download.txt
"C:\Program Files\Rat\Rat.exe" -Cc:\handicrafts\catalog-update.cfg -G -Kc:\handicrafts\catalog -A_page_0.html -B.html -R -X
FTP -v -i -s:catalog-upload.txt
And this bat file line by line with comments and examples of config files:
• del /q catalog\*.*
I just delete files downloaded in the previous session
catalog directory is for html files
• FTP -v -i -s:catalog-download.txt
Downloading category html pages by windows command line ftp command
Where catalog-download.txt is the list of ftp commands:
open your-site.com
ftpaccount
ftppassword
!:--- making active the local pc directory for downloading html files---
lcd c:\deadlink-cleaning\catalog
cd catalog
mget category*
disconnect
bye
• "C:\Program Files\Rat\Rat.exe" -Cc:\deadlink-cleaning\catalog-update.cfg -G -Kc:\deadlink-cleaning\catalog -A_page_0.html -B.html -R –X
Using RAT application for with command line options for fixing dead links
• FTP -v -i -s:catalog-upload.txt
Uploading category html pages by windows command line ftp command
Where catalog-upload.txt is:
open your-site.com
ftpaccount
ftppassword
!:--- making active the local pc directory for downloading html files---
lcd c:\ deadlink-cleaning\catalog
cd catalog
mdelete "category*.*"
mput *
disconnect
bye
I use the bat file under admin account for avoiding error message for RAT application.
This is it.
Just use bat file and dead links will be killed :)
Write me if you have any difficulties.
Subscribe to:
Post Comments (Atom)
Awesome post. I am a normal visitor of your website and appreciate you taking the time to maintain the nice site. I’ll be a frequent visitor for a really long time.
ReplyDeletecalligraphy art islamic