Articles tagged with “url”
- Redirect All Requests for a Nonexistent File to the Actual File
- In my previous article on redirecting 404 requests for favicon files, I presented an HTAccess technique for redirecting all requests for nonexistent favicon.ico files to the actual file located in the site’s web-accessible root directory:
# REDIRECT FAVICONZ
RewriteCond %{THE_REQUEST} favicon.ico [NC]
RewriteRule (.*) http://domain.tld/favicon.ico [R=301,L]
As discussed in the article, this code is already in effect here at ...
- Stop the Madness: Redirect those Ridiculous Favicon 404 Requests
- For the last several months, I have been seeing an increasing number of 404 errors requesting “favicon.ico” appended onto various URLs:
http://perishablepress.com/press/favicon.ico
http://perishablepress.com/press/2007/06/12/favicon.ico
http://perishablepress.com/press/2007/09/25/absolute-horizontal-and-vertical-centering-via-css/favicon.ico
http://perishablepress.com/press/2007/08/01/temporary-site-redirect-for-visitors-during-site-updates/favicon.ico
http://perishablepress.com/press/2007/01/16/maximum-and-minimum-height-and-width-in-internet-explorer/favicon.ico
When these errors first began appearing in the logs several months ago, I didn’t think too much of it — “just another idiot who can’t find my site’s favicon..” As time went on, however, the frequency and variety of these misdirected requests continued to increase. A bit frustrating perhaps, but not serious enough to ...
- Unexplained Crawl Behavior Involving Tagged Query Strings
- I need your help! I am losing my mind trying to solve another baffling mystery. For the past three or four months, I have been recording many 404 Errors generated from msnbot, Yahoo-Slurp, and other spider crawls. These errors result from invalid requests for URLs containing query strings such as the following:
http://perishablepress.com/press/page/2/?tag=spam
http://perishablepress.com/press/page/3/?tag=code
http://perishablepress.com/press/page/2/?tag=email
http://perishablepress.com/press/page/2/?tag=xhtml
http://perishablepress.com/press/page/4/?tag=notes
http://perishablepress.com/press/page/2/?tag=flash
http://perishablepress.com/press/page/2/?tag=links
http://perishablepress.com/press/page/3/?tag=theme
http://perishablepress.com/press/page/2/?tag=press
..plus hundreds and hundreds ...
- Universal www-Canonicalization via htaccess
- During my previous rendezvous involving comprehensive canonicalization for WordPress, I offer my personally customized technique for ensuring consistently precise and accurate URL delivery. That particular method targets WordPress exclusively (although the logic could be manipulated for general use), and requires a bit of editing to adapt the code to each particular configuration. In this follow-up tutorial, I present ...
- What is My WordPress Feed URL?
- For future reference, this article covers each of the many ways to access your WordPress-generated feeds. Several different URL formats are available for the various types of WordPress feeds — posts, comments, and categories — for both permalink and default URL structures. For each example, replace “http://domain.tld/” with the URL of your blog. Note: even though your blog’s main feed is ...
- Permalink Evolution: Customize and Optimize Your Dated WordPress Permalinks
- How to streamline and maximize the effectiveness of your WordPress URLs by using htaccess to remove extraneous post-date information: years, months, and days..
Recently, there has been much discussion about whether or not to remove the post-date information from WordPress permalinks 1. Way back during the WordPress ...
- Comprehensive URL Canonicalization via htaccess for WordPress-Powered Sites
- Permalink URL canonicalization is automated via PHP in WordPress 2.3+, however, for those of us running sites on pre-2.3 versions or preferring to deal with rewrites directly via Apache, comprehensive WordPress URL canonicalization via htaccess may seem impossible. While there are several common methods that are partially effective, there has not yet ...
- WordPress Lessons Learned, Part 1: Permalink Structure
- While planning my current site renovation project, I considered changing the format of my permalinks. Reasons for modifying the permalink structure of a site include:
Optimizing URLs for the search engines
Simplifying URL structure for improved readability
Removing the implication that your site content is somehow organized chronologically
Removing other unwanted organizational implications (e.g., categorically, topically, etc.)
Like many people who configured WordPress permalinks a couple of years ago, ...
- Comprehensive Reference for WordPress NoNofollow/Dofollow Plugins
- Recently, while deliberating an optimal method for eliminating nofollow link attributes from Perishable Press, I collected, installed, tested and reviewed every WordPress no-nofollow/dofollow plugin that I could find. As of the writing of this post, I have evaluated 12 dofollow plugins, all of which are freely available on the Internet.
In this article, I present a concise, current, and comprehensive reference for WordPress no-nofollow and dofollow plugins. ...
- Another Mystery Solved..
- Recently, after researching comment links for an upcoming article, I realized that my default values were being submitted as the URL for all comments left without associated website information. During the most recent site redesign, I made the mistake of doing this in comments.php:
...
...
Notice the value="[website]" attribute? It seemed like a good idea at the time — I even threw in a ...
- Harvesting cPanel Raw Access Logs
- [ Keywords: cpanel, access, logs, log, ip, http, data ]
Harvesting Raw Logs For those of us using cPanel as the control panel for our websites, a wealth of information is readily available via cPanel ‘Raw Access Logs’. These logs are perpetually updated with data involving user agents, IP addresses, HTTP activity, resource access, and a whole lot more. Here is a ...
- URL Character Codes
- URL’s frequently employ potentially conflicting characters such as question marks, ampersands, and pound signs. Fortunately, it is possible to encode such characters via their escaped hexadecimal ASCII representations. For example, we would write "?" as "%3F". Here are a few more URL character codes (case-insensitive):
%3E
# %23
% %25
{ %7B
} %7D
| %7C
\ %5C
^ %5E
~ %7E
[ %5B
] %5D
` %60
; %3B
/ %2F
? %3F
: ...