Re: Whacky WGET issue...

From: Date: Thu, 06 Sep 2001 08:53:16 +0000
Subject: Re: Whacky WGET issue...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66176@lists.php.net to get a copy of this message
A much better way of doing this would be use to mod_rewrite..... an apache module that basically applies regular expressions to urls This would give you a way of avoiding passing variable but without resorting to the work around of 404 ----- Original Message ----- From: "Sondra Russell" <sondra@sondra.com> To: <php-general@lists.php.net> Sent: Thursday, August 30, 2001 6:27 PM Subject: [PHP] Whacky WGET issue... > Hello everyone! > > Crazy question: > > I've created a little script that reads in .txt files and, with the > help of phplib templates, matches them up with a collection of > templates and spits out the beautiful html page. > > In order to avoid sending variables through the URL I've stolen this > bizarre workaround where, when you call > http://www.mysite.com/somepage.html for example, the apache > configuration realizes it's a 404 and redirects all 404s through my > cms script. Then my script looks for > http://www.mysite.com/somepage.txt and does the rest. > > This works beautifully, and my plan was to have a "dev" environment > that runs against the little CMS system and then wget the whole site > periodically for the live server (so, the live site actually *is* a > collection of flat pages). > > Beautiful plan, but it turns out that WGET doesn't see the apache > configuration change that runs all 404s through my CMS script. It > sees a 404 and tells me its a 404 and then goes back to its coffee > break, you know? > > Anyone else tried this workaround before with similar results? > Anyone else have a better workaround? Bueller? > > Anyway, best, > Sondra > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#66176) next »