Also, maybe be aware that (.*) will match anything, even the empty
string, so you may end up with "/wc?uni=" (unless as solprovider
indicates, you have a different rule for "/").
It may be better to use "^/(.+)$", which will only match if there is
actually something after the /.
[EMAIL PROTECT
Do not escape the question mark.
RewriteRule ^/(.*) /wc?uni=$1 [L]
- the first character must be a slash and is not included in the $1 variable.
- Add "/wc?uni=" before the rest of the URL on the same server.
- Discard any querystring from the visitor. (No QSA flag.)
- [L] = stop processing Rewri
I am trying to get a redirect to work so that I can get friendl URLs for
my website. I am using mod_perl and have written a little handler as a
controler to handle all requests.
What I currently have that works as follows.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f [OR]
Re
Since a recent update on my MacBook OSX 10.5.5, ab is throwing the
following error:
-- cut here --
Benchmarking localhost (be patient)...
Test aborted after 10 failures
apr_socket_connect(): Invalid argument (22)
-- cut here --
The exact same command is working fine from a non-Mac machine.
Any
Nick,
I believe the syntax
is
RewriteEngine on;
RewriteRule /A/.* - [E=Config:A]
RewriteRule /B/.* - [E=Config:B]
_
my actual setup
Alias /bugzillatest /usr/share/bugzilla
Alias /bugzillaother /usr/share/bugzilla
RewriteEngine on
#RewriteRul
On Mon, Nov 3, 2008 at 4:36 PM, Marcin Zajączkowski <[EMAIL PROTECTED]> wrote:
> On 2008-11-02 20:44, Eric Covener wrote:
> (...)
>>> How can I set Options and other configuration for user public_html
>>> directories which are placed in a different paths:
>>> /home/foo/user1
>>> /home/bar/user2
>>>
On 2008-11-02 20:44, Eric Covener wrote:
(...)
>> How can I set Options and other configuration for user public_html
>> directories which are placed in a different paths:
>> /home/foo/user1
>> /home/bar/user2
>> /home/2007/aa/user3
>> /home/2007/ab/user4
>> /home/too/2005/z/user5 ?
>
> It's unclea
Nick,
Thank you. Is this the best way to achieve this? Ie. I am sure that I
have managed to do this before with Location directives. Has this
changed?
Would this be the correct syntax for my example?
RewriteEngine on;
RewriteRule /A/.* - E=Config:A
RewriteRule /B/.* - E=Config:B
Cheers
Ste
On Mon, Nov 3, 2008 at 2:09 PM, JimRaynor <[EMAIL PROTECTED]> wrote:
> I tried this on several apache servers. On some it works perfectly. On some
> it doesn't work at all. And on some it rewrites first part of the link, but
> not query string (part after ? ) . How to configure Apache for this to
Hi, which version is Vista compatible? Thanks
As part of SEO optimization, I use this code in my .htaccess file :
RewriteEngine On
RewriteRule ^some/(.*)/(.*).html$ some.php?&reqa=$1&reqb=$2
This code should rewrite this link:
some/valuea/valueb.html
into this:
some.php?&reqa=valuea&reqb=valueb
I tried this on several apache servers
Hi All,
I have enabled mod_cache and I'm using mem caching (mod_mem_cache) as my
caching type, but how can I check if it is actually doing anything. Is there
anyway to see what is in the cache, being served from the cache, what the
cache hit rate is, etc...???
Thanks
Kind regards,
Andrew.
On Mon, 3 Nov 2008 13:04:32 +1000
"Stephen Brennan" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am trying to figure out how to configure appache webserver to set
> different UNIX environment variables depending on the url text
> entered.
RewriteRule.
Capture the path component you want, and use
On Mon, 3 Nov 2008 01:10:42 -0500
[EMAIL PROTECTED] wrote:
> /maint/downloads/httpd-2.2.10/srclib/apr/libtool --silent --mode=link
> gcc -g -O2 -L/usr/sfw/lib -R/usr/local/ssl/lib
> -L/usr/local/ssl/lib -R/usr/local/lib -L/usr/local/lib -o ab ab.lo
> -lm /maint/downloads/httpd-2.2.10/srclib/
14 matches
Mail list logo