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

Welcome to IWETHEY!

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)

Sheep. Hmm.
52 ms