IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Oh, OK...
That sounds like what I want, then. So essentially it's just one file with a series of links pointing to other links? That's easier to do than I originally feared... as soon as I read up on the proper format.
"We are all born originals -- why is it so many of us die copies?"
- Edward Young
New 124K - eek!
I created a 301 redirect list of all my help desk images and placed that in my .htaccess file...

Redirect 301 /comics/hd20010306.png [link|http://files/comics/hd/hd20010306.png|http://files/comics/hd/hd20010306.png] etc etc

1400 lines later, the htaccess file is now 124.7 k! From an original 5.7k.

I'm having trouble rationalizing loading that up into my live site. That's an awfully big file.
"We are all born originals -- why is it so many of us die copies?"
- Edward Young
New I wouldn't sweat it.
We have a 62Kb httpd.conf file on our main website. And it's big enough to need it's own load-balanced configuration with 10 web servers.

Wade.


Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please



-- "Anything but Ordinary" by Avril Lavigne.

· my ·
· [link|http://staticsan.livejournal.com/|blog] ·
· [link|http://yceran.org/|website] ·

New oh, that's right...
.htaccess is read by the SERVER, not by browsers.

Heh.

I knew that. :)
"We are all born originals -- why is it so many of us die copies?"
- Edward Young
New RedirectMatch?
I think the way to cut down on the size of this file is to use RedirectMatch instead of Redirect... RedirectMatch lets you use wildcards.

Alas, I'm not quite familiar with how it's supposed to work, so this is a guess:

move all png files starting with "hd" from /comics to /files/comics/hd:

RedirectMatch 301 /comics/hd(.*)\\.png$ [link|http://ubersoft.net/files/comics/hd$1|http://ubersoft.net/files/comics/hd$1]

... does that look right?
"We are all born originals -- why is it so many of us die copies?"
- Edward Young
New you might not even need the...
http://ubersoft.net part.

Though I haven't done any mass relocations like that ever.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
Freedom is not FREE.
Yeah, but 10s of Trillions of US Dollars?
SELECT * FROM scog WHERE ethics > 0;

0 rows returned.
New But are the wildcards used correctly?
That's the part I'm nervous about.

Also, if I wanted to redirect a number of files to a specific page:

"all html files in the 'd' directory starting with 'hd1996' to '[link|http://ubersoft.net/comic/hd/archives/1996'|http://ubersoft.net/...hd/archives/1996'] "

would I just drop the "$1", i.e.

RedirectMatch 301 /d/hd1996(.*)\\.html$ [link|http://ubersoft.net/comic/hd/archives/1996|http://ubersoft.net/.../hd/archives/1996]

... and if I did that would it be appropriate to use the 301, or would it be more accurate to use one of the other redirect #'s?

I'm pretty new at this... the stuff I've googled doesn't quite cover it, or the conversations and explanations assume a much higher familiarity with the subject than I have... and the apache documentation, unfortunately, is rather like reading sanskrit.
"We are all born originals -- why is it so many of us die copies?"
- Edward Young
New Looks like it. According to current Apache docs:
[link|http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirectmatch|apache 1.3 mod_alias docs]

RedirectMatch (.*)\\.gif$ [link|http://www.anotherserver.com$1.jpg|http://www.anotherserver.com$1.jpg]


Just add the parts you need.

But it appears you are good. Nothing a test wouldn't fix.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
Freedom is not FREE.
Yeah, but 10s of Trillions of US Dollars?
SELECT * FROM scog WHERE ethics > 0;

0 rows returned.
     Not sure if this belongs here or in "Networking"... - (cwbrenn) - (15)
         might have to do with the fact that most engines - (boxley) - (1)
             But then they'd never quit. - (crazy)
         Welcome back. - (Another Scott)
         Probably not bots - more likely fans - (tuberculosis) - (11)
             Re: Probably not bots - more likely fans - (cwbrenn) - (10)
                 This looks like a good article on it. - (crazy)
                 Here's the short version - (drewk) - (8)
                     Oh, OK... - (cwbrenn) - (7)
                         124K - eek! - (cwbrenn) - (6)
                             I wouldn't sweat it. - (static) - (1)
                                 oh, that's right... - (cwbrenn)
                             RedirectMatch? - (cwbrenn) - (3)
                                 you might not even need the... - (folkert) - (2)
                                     But are the wildcards used correctly? - (cwbrenn) - (1)
                                         Looks like it. According to current Apache docs: - (folkert)

Have you heard Prado is finished? He was badly gored. Now he can only drink herb tea.
67 ms