scriptygoddess

15 Oct, 2004

htaccess writing urls without extensions

Posted by: Jennifer In: Bookmarks

In searching for a method to display a url without the .htm or .php extension, I found the following links:

Rewrie URLs with Content Negotiation

SitePoint forum discussion

But specifically the answer was basically to put the following in your htaccess file:

Options +FollowSymlinks
RewriteEngine on
# if the URI doesn't contain a dot and doesn't contain a slash
# then make an internal redirection to the file with the .shtml
RewriteRule ^([^./]+)/?$ $1.php [L]

FYI – this still doesn't bypass the "Web Bug from MailScannerWebBug" that images embeded into an HTML email are being replaced with (when the image src actually points to a script) when viewed through some email readers. So much for being able to track if users are reading emails. Granted I know this is to block spammers from "testing" email addresses – but they're spoiling it for "everyone else" that DO comply with "can-spam" and opt out lists, and only email REQUESTED offers, etc. This also, in turn, hurts users.

Not to completely go off on a rant here – but if a "good email" company sends out an email and sees that no one cares about it, no one was interested in the offer – the kind of data that is now being blocked by email readers also makes it difficult for the company to then turn it up a notch and make the offer better. Without being able to see who is actually reading emails – there's no way to know if the offer was well received or not. Companies that use this information to better their customers get "punished" with the evil spammers.

I know some companies have a "blacklist" for bad emailers – it's too bad there isn't a "whitelist" where a central, objective company can review your offers regularly, review your content, review your opt-out system, etc. and then certify you as a "valid" email marketer. (Where you then don't have to worry about getting blocked by things like this…)

(I'll add this to my "perfect world" requirements documentation) 😉

No Responses to "htaccess writing urls without extensions"

Comments are closed.

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements