Hi Eric,
try this:
RewriteEngine on
RewriteBase /script
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ script.cgi?param1=$1 [L,QSA]
Péter
http://extensiblecatalog.org
- Original Message -
Fro
On Tue, 30 Jun 2009, Eric Lease Morgan wrote:
Can someone here help me with a tricky Apache mod_rewrite configuration?
I want to write a script accessible via a URL with the following shape:
http://example.org/script/arg1/
Where script is my (Perl) script and arg1 is some... argument.
How do
Hi Kevin,
I'm interested - I joined, but didn't see a post out there about
volunteering
Thanks,
Susan Teague Rector
Web Applications Manager
VCU Libraries
setea...@vcu.edu
Kevin S. Clarke wrote:
Hi all,
This is just a heads up that we will soon start ramping up discussions
about the 2010 cod
On Wed, Jul 1, 2009 at 4:58 AM, Peter Kiraly wrote:
> Hi Eric,
>
> try this:
>
>
> RewriteEngine on
> RewriteBase /script
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_URI} !=/favicon.ico
> RewriteRule ^(.*)$ script.cgi?param1=$1 [L,QSA
From: "Godmar Back"
is it possible to write this without hardwiring the RewriteBase in it? So
that it can be used, for instance, in an .htaccess file from within any
/path?
Yes, you can put it into a .htaccess file, and the URL rewrite will
apply on that directory only.
Péter
http://extensib
On Wed, Jul 1, 2009 at 9:13 AM, Peter Kiraly wrote:
> From: "Godmar Back"
>
>> is it possible to write this without hardwiring the RewriteBase in it? So
>> that it can be used, for instance, in an .htaccess file from within any
>> /path?
>>
>
> Yes, you can put it into a .htaccess file, and the
You probably could if you get real tricky with the regex code - but I would
say probably not. rewrite takes the entire url into consideration - so you
need to denote where to start with the rewrite base.
I use this for vufind:
RewriteRule ^([^/]+)/(.+)$ index.php?module=$1&action=$2 [L,QSA]
Whic
> Is it possible to write a .htaccess file that works
> *no matter* where it is located
I don't believe so.
If the .htaccess file lives in a directory inside of the Apache root directory,
then you _don't_ need to specify a RewriteBase. It's really only necessary
when .htacess lives in a virtu
On Wed, Jul 1, 2009 at 10:18 AM, Walker, David wrote:
> > Is it possible to write a .htaccess file that works
> > *no matter* where it is located
>
> I don't believe so.
>
> If the .htaccess file lives in a directory inside of the Apache root
> directory, then you _don't_ need to specify a Rewrit
Apache docs say:
"*Notice:* If your webserver's URLs are *not* directly related to
physical file paths, you have to use |RewriteBase| in every |.htaccess|
files where you want to use |RewriteRule| directives."
So probably not. I don't use .htaccess files that much myself. But
I've run into
> They can create .htaccess files, but don't always
> have control of the main Apache httpd.conf or the
> root directory.
Just to be clear, I didn't mean just the root directory itself. If .htacess
lives within a sub-directory of the Apache root, then you _don't_ need
RewriteBase.
RewriteBas
On Wed, Jul 1, 2009 at 10:38 AM, Walker, David wrote:
> > They can create .htaccess files, but don't always
> > have control of the main Apache httpd.conf or the
> > root directory.
>
> Just to be clear, I didn't mean just the root directory itself. If
> .htacess lives within a sub-directory of
Hi,
I was just waiting to give folks a chance to sign up for that list,
but I guess that's what list archives are for :-) ...while I dallied,
Jodi sent out a message to that list with the link to the sign-up page
(which I'll repeat here since I'm already clogging up the list with my
random chatter
If you do find the answer, let me know. I've been looking for a while
too, and unsuccesful. Thanks for that pointer to that weird workaround
to variables in the right-hand side, I didn't know about that and it
could be useful.
mod_rewrite totally drives me to mythical sendmail levels of insan
> How can I write an .htaccess that's path-independent
> if I like to exclude certain files in that directory,
> such as index.html?
This is what the Zend Framework uses. I think it's pretty clever:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*
On Wed, 1 Jul 2009, Godmar Back wrote:
How can I write an .htaccess that's path-independent if I like to exclude
certain files in that directory, such as index.html? So far, I've been
doing:
RewriteCond %{REQUEST_URI} !^/services/tictoclookup/standalone/index.html
To avoid running my script f
On Jun 30, 2009, at 10:40 PM, Eric Lease Morgan wrote:
Can someone here help me with a tricky Apache mod_rewrite
configuration?
Thank you for all the helpful replies, both on and off list. Very
interesting, and not as straight-forward as I would like.
Call me lazy, but since my script r
Benjamin O'Steen wrote:
> The easiest way to create these at the moment, is to use OpenOffice 3
> and choose the "Save As PDF" and tick the PDF/A option.
Is there some free software that can verify if a given PDF file
really is a valid PDF/A file? If I want users to upload their
documents to a
Eric Lease Morgan wrote:
On Jun 30, 2009, at 10:40 PM, Eric Lease Morgan wrote:
Can someone here help me with a tricky Apache mod_rewrite
configuration?
Thank you for all the helpful replies, both on and off list. Very
interesting, and not as straight-forward as I would like.
Call me l
I know you mean well, but do you really think that Eric Morgan is not
familiar with TEI? These texts appear to be largely from Project Gutenberg,
which doesn't know TEI from a hole in the ground. All in all, I think Eric
is doing some pretty good work to make these plain vanilla texts usable in
int
You could look at JHOVE [1] for validation of the PDF/A.
[1] http://hul.harvard.edu/jhove/
21 matches
Mail list logo