On Wed, 8 Apr 2009 12:31:34 -0400
Brian Mearns wrote:
> On Wed, Apr 8, 2009 at 12:19 PM, Josh Trutwin
> wrote:
> > I'm dealing with something odd and I can't figure out what to
> > make of it - I have the following rewrite rule:
> >
> > RewriteRule
I'm dealing with something odd and I can't figure out what to make of
it - I have the following rewrite rule:
RewriteRule
^([0-9]+)/([a-z0-9]+)/get_flash\.php$ /get_file.php?id=$1&flash=1&key=$2
[L]
then a URL liks this /123/2313412sdfsdf/get_flash.php works fine.
BUT if I change my rule to this
On Wed, 4 Jun 2008 13:04:42 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> Just use a dbm rewritemap. These will be fast and scalable and don't
> suffer from all the prg map problems.
ok - I think that's the road I'll try to take - couple quick
questions:
1. if you update a dbm map file do yo
On Wed, 4 Jun 2008 12:08:28 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> > Is it possible to start multiple instances of this program?
>
> No, not directly.
>
> A few possibilities:
>
> 1. Try to do whatever you are doing without an prg: rewritemap.
> These should really be a last resort f
We have a RewriteMap program that is kicked off via the following:
RewriteMap smc_rewriter prg:/usr/share/php/rewriter.php
This works well most of the time, but for heavy use it really can bog
down as there is always only one of these programs running to handle
all the requests.
Is it possible t
Hi,
I've been using apache's rewriting to change our arcane CMS URLs into
something more search engine friendly. It's been working well except
for one minor issue. Every now and then our CMS will generate a form
(e.g. to search for items or add to cart, etc) with a form tag like
this using our o
Hi - been a week, curious if anyone has any ideas?
Josh
On Fri, 30 Nov 2007 15:00:17 -0600
Josh Trutwin <[EMAIL PROTECTED]> wrote:
> Hi - through some great help from this list (I'm looking at you
> Joshua Slive) I was able to setup a RewriteMap using a PhP program.
> A
Hi - through some great help from this list (I'm looking at you
Joshua Slive) I was able to setup a RewriteMap using a PhP program.
After a couple months usage on a number of heavy sites we're noticing
an odd inconsistent problem that causes ALL site requests to yeild
this nasty error:
mod_rewrite
On Fri, 1 Jun 2007 15:22:19 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> There are a number of ways to get around this problem. Moving to
> httpd.conf is always preferable in my opinion. But you could also
> try replacing your REQUEST_FILENAME test with a test against
> REQUEST_URI or THE_REQ
On Fri, 1 Jun 2007 08:57:06 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> I can't tell at all what you are trying to accomplish here. Given
> you have the second set of rules, why is the first set of rules
> necessary at all? If people are redirected to the correct place,
> why do you then nee
On Thu, 31 May 2007 13:20:03 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> Yes, but I was thinking of having your script just output the
> /custom/404.php directly.
Hoping this is my last question - I have the following .htaccess file:
RewriteEngine On
# Rewrite Map for Page Rewrites
Rewri
On Thu, 31 May 2007 13:20:03 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> Yes, but I was thinking of having your script just output the
> /custom/404.php directly.
A step ahead of you, have it not check for /custom/404.php otherwise
it just goes to /.
Thanks for your help, I think this is w
On Thu, 31 May 2007 11:02:54 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> On 5/31/07, Josh Trutwin <[EMAIL PROTECTED]> wrote:
>
> > One last problem I seem to be having is how the program returns
> > NULL
> > - I have this when the program finds
On Thu, 31 May 2007 10:06:10 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> If you can get that to work under load, that's great. But I'd worry
> about that program becoming a choke point. Only one request at a
> time can be processed through the program. (Make sure you are using
> RewriteLock
On Wed, 30 May 2007 22:29:53 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> > Out of curiosity - how would you use the hostname in the lookup
> > key?
>
> Adjust your db file to use host/path instead of just path as the
> key, and then:
>
> RewriteCond ${existing:%{HTTP_HOST}$1|NOT-FOUND} =NO
On Wed, 30 May 2007 16:20:23 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> No. The %0 notation is specific to mod_vhost_alias. It can't be used
> in any other directive. (In particular, RewriteMaps are initialized
> at server startup, so it doesn't work to make their location a
> per-request v
On Wed, 30 May 2007 15:06:27 -0400
"Joshua Slive" <[EMAIL PROTECTED]> wrote:
> On 5/30/07, Josh Trutwin <[EMAIL PROTECTED]> wrote:
> > I have been asked to create rewrite rules for sites that use an
> > old page naming scheme to a new one. The first attem
I have been asked to create rewrite rules for sites that use an old
page naming scheme to a new one. The first attempt was to create
a .htaccess file that had a rewrite rule for every page, something
like:
RewriteRule ^new_page_name.php$ /sitepages/pid123.php [L,QSA,NC]
Works ok for small sites,
On Tue, 27 Feb 2007 09:25:09 -0800
Marc Perkel <[EMAIL PROTECTED]> wrote:
> Is there a way to run multiple virtual sites on one IP using
> different certificates? Apache 2.2
A while back I asked a similar question and was pointed at this:
http://www.apsis.ch/pound/
Though I never got around to
On Thu, 22 Feb 2007 21:36:03 +
matt farey <[EMAIL PROTECTED]> wrote:
> RewriteEngine On
> ReWriteCond %{REQUEST_FILENAME} pid5.html$
> ReWriteCond %{QUERY_STRING} !stop=yes
> ReWriteRule . /products.html [R=301]
> ReWriteRule ^products.html$ /pages/pid5.html?stop=yes [L,QSA]
Thanks Matt - I'l
Hi,
I'm working for a small company that uses a custom CMS. When
customers create pages in the CMS a file gets created based on the
page's id number - for example:
www.mysite.com/pages/pid5.html
I've pushed some code into the CMS that lets the site admin create a
nice URL for each page so you g
I had a request to enable SSI on one of the domains I manage on a
2.0.55 server (built from source) on Debian Linux.
SSI behavior can only be described as "odd".
The developers have .shtml files that contain a number of directives.
Here is a real example:
and so on...
I verified the ex
22 matches
Mail list logo