|
Every link has two ends - fixing 404s at the recipient
"They have printed the wrong link." Thus starts a frustrated post on the Save the Train web site, worried that a link in the local newspaper to our support pledge page ends up at a "404". And, yes, they have dropped the newspaper a line too, hoping to catch them before the online edition goes "printed".
But every link has two ends ... and since the error in the URL still leaves the URL pointing to our server, and just the wrong place on it, a very short mod_rewrite request means that the paper's site is now pointing at the correct place - in addition to the URL that everyone else is using.
-bash-2.05b$ cat .htaccess
RewriteEngine On
RewriteRule pledge$ pledge.html
-bash-2.05b$
So that's /pledge linked to /pledge.html
It's not the first time I've done this "trick" and indeed, given a substantial number of erroneous follows, I can sometimes spot such things in our log analyses. In this case we caught it very early, though! (written 2008-04-02 06:33:43)
Associated topics are indexed under W512 - Web and Intranet - Site Design AspectsA606 - Web Application Deployment - Apache - log files and log file tools
Some other Articles
Automating processes through ExpectReplacing the last comma with an andCambidge - Tcl, Expect and Perl coursesFresher tutor, better courseEvery link has two ends - fixing 404s at the recipientComparing hotels - as a guest and from the proprietors viewSelling curry to the chinese takeawayFirst Great Western WeekendPlease support improvements in our train serviceKeep the client experience easy - single server contact point
|
1816 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 at 50 posts per page
This is a page archived from The Horse's Mouth at
http://www.wellho.net/horse/ -
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).
|
|