buy levitra online
 

.htaccess Mayhem

May 22 2007
0 comments
  • Web Dev
  • By ensellitis
down a post

I guess you could say that this little snippet could only be used by me for certain scripts... Then again, I needed it, so someone else out there may need it, too.

Basically it is .htaccess to change
http://www.ensellitis.com/img/http://example.com/image.gif
into
http://www.ensellitis.com/img/index.php?image=http://example.com/image.gif

Just another URL rewrite tweak.

CODE
  1. Options +FollowSymlinks
  2. RewriteEngine on
  3. RewriteRule ^([a-zA-Z:]+)\/\/(.*)$ /img/index.php?Image=$1\/\/$2

([a-zA-Z:]+) looks for any letter a through z (capitalized or not) with a trailing :. So basically http:

\/\/ is the // in http:// (escaped, of course).

(.*) looks for any letter, character, or number.

The $1 and $2 prints their respective searches.

If you are interested in writing your own .htaccess URL rewrites, or anything htaccess related for that matter, head on over to this place or this place. They saved my ass a time or two.

Good luck figuring out regular expressions, I still strugal with it. I need to write up a tutorial, just so I can understand it.

 

More Mootool fun

May 08 2007
1 comments
  • Javascript, Web Dev
  • By ensellitis
Step up down a post

Yep. I have been playing with mootools again. Version 1.1 has been just been released, so I figured it was as good of time as any to make something to test it out. The result? Windows online, a Windows emulation. It looks best in Firefox... but will operate limitly on other browsers.

It is by no means the best example of its powers... But it is a good example anyways, and I don't mind tooting my own horn.

 

Annoying Websites 1

Aug 25 2005
0 comments
  • Web Dev
  • By ensellitis
Step up down a post

More and more I have been noticing that people have been adding some really annoying and stupid warnings on thier sites… What warnings am I talking about? "This site requires Internet Explorer", "Best if viewed at 1024 by 768 resolution", and so on… This is telling me that you refuse to take the time to make your site work in all browsers and all resolutions, that you are lazy. Please take the time, it makes your site that much better. I have tried my site on resolutions 800 by 600 and up, and every browser that I can think of. I want it to be viewable by anyone who may actually want to read it, view it, yadda yadda.

I have been noticing alot more un-needed splash screens. This has really been getting on my nerves, the only time I ever use them is when i am testing a new site and I want to announce it, sometimes I don't even do that. I want to click as little as possible to get to what I want to get at, if the splash takes to long to load, I won't even continue to your site… Which kinda brings me to my next annoyance… Requiring people to register before they can view something on your site. I have been seeing this alot on tutorial sites, and I simply close that tab and go to another. The last thing I want to do is register on yet another site, I am a member of alot as it is. If I wanted to join your site, I will, but by you forcing me, I will just simply never visit it again. I know what you may be thinking "You force me to register here by putting in my email address". No i don't, it is required to prevent spam, and to set a cookie so that you can be remembered, I only ever look at the email address if the post looks like spam, and I have never emailed a address used to comment unless the comment poster asked me specifically.

There are alot more things that have been annoying me about websites, but those are the highest on the list. I'll touch on some more later.