[EMAIL PROTECTED] RewriteRule help!

2008-06-13 Thread Miguel J. Jiménez
Hi, I am having a little problem here, I have a .htaccess that looks thus: RewriteEngine on RewriteBase /INDEX RewriteRule \.(log|sqlite)$ index.php [L] RewriteRule \.(js|css|png|jpg|gif|xml)$ - [L] RewriteRule ^(.*)$ index.php?m=$1 [L,QSA] When I type "http://foo/INDEX/mp3"; it goes [internally

Re: [EMAIL PROTECTED] RewriteRule

2008-03-23 Thread Nils Jeppe
On Sun, 23 Mar 2008, Joshua Slive wrote: Mh, is that new? That particular document is relatively new. But the behavior of mod_rewrite in this regard has not changed for as long as I remember. Ah, QSA appends, and doesn't allow parsing. I've always wanted to parse. Still, you are right, t

Re: [EMAIL PROTECTED] RewriteRule

2008-03-23 Thread Joshua Slive
On Sun, Mar 23, 2008 at 12:16 PM, Nils Jeppe <[EMAIL PROTECTED]> wrote: > > > On Sun, 23 Mar 2008, Joshua Slive wrote: > > > Not quite. See: > > http://wiki.apache.org/httpd/RewriteQueryString > > Mh, is that new? That particular document is relatively new. But the behavior of mod_rewrite in t

Re: [EMAIL PROTECTED] RewriteRule

2008-03-23 Thread Nils Jeppe
On Sun, 23 Mar 2008, Joshua Slive wrote: Not quite. See: http://wiki.apache.org/httpd/RewriteQueryString Mh, is that new? - Nils - The official User-To-User support forum of the Apache HTTP Server Project. See http://htt

Re: [EMAIL PROTECTED] RewriteRule

2008-03-23 Thread Joshua Slive
On Sun, Mar 23, 2008 at 11:19 AM, Nils Jeppe <[EMAIL PROTECTED]> wrote: > > > On Sun, 23 Mar 2008, Sam Carleton wrote: > > > The category/fldoid is always going to be present, the p can be > > changed for other variables, so this is what I came up with, but the 7 > > is not being picked up by t

Re: [EMAIL PROTECTED] RewriteRule

2008-03-23 Thread Nils Jeppe
On Sun, 23 Mar 2008, Sam Carleton wrote: The category/fldoid is always going to be present, the p can be changed for other variables, so this is what I came up with, but the 7 is not being picked up by the PHP code: Well - you terminate your rule at .php and then create a new url with empty

[EMAIL PROTECTED] RewriteRule

2008-03-23 Thread Sam Carleton
I am trying to get this URL /category/838fe8cb-40d2-4a38-85ba-a1ee46214894/p.php?7 Turned into this: index.php?fldoid=838fe8cb-40d2-4a38-85ba-a1ee46214894&p=7 The category/fldoid is always going to be present, the p can be changed for other variables, so this is what I came up with, but the 7 i

RE: [EMAIL PROTECTED] RewriteRule help

2008-03-01 Thread Narendra Verma
-Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2008 3:19 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] RewriteRule help Hi all, Anybody knows what apache RewriteRule to use if I want url: http://www.aaa.comm/user// be rewritten as: http

Re: [EMAIL PROTECTED] RewriteRule help

2008-03-01 Thread J. Peng
On Sat, Mar 1, 2008 at 5:49 PM, Shelley <[EMAIL PROTECTED]> wrote: > Hi all, > > Anybody knows what apache RewriteRule to use if I want url: > http://www.aaa.comm/user// > be rewritten as: > http://www.aaa.comm/user/index.php// > try: RewriteRule ^/(.*)/(.+)/$ /$1/index.php/$2/ Not

[EMAIL PROTECTED] RewriteRule help

2008-03-01 Thread Shelley
Hi all, Anybody knows what apache RewriteRule to use if I want url: http://www.aaa.comm/user// be rewritten as: http://www.aaa.comm/user/index.php// Any help, thank you very much. -- Cheers, Shelley - The official Use

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-22 Thread Sean Allen
On Feb 20, 2008, at 3:45 PM, Ruslan Sivak wrote: Krist van Besien wrote: On Wed, Feb 20, 2008 at 6:20 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: So basically appache is not encoding the arguments when they're proxied. When it gets to index.html it just sees user=testing. How do I make

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-20 Thread Ruslan Sivak
Krist van Besien wrote: On Wed, Feb 20, 2008 at 6:20 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: So basically appache is not encoding the arguments when they're proxied. When it gets to index.html it just sees user=testing. How do I make apache properly encode the arguments? Prop

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-20 Thread Krist van Besien
On Wed, Feb 20, 2008 at 6:20 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: > So basically appache is not encoding the arguments when they're > proxied. When it gets to index.html it just sees user=testing. > > How do I make apache properly encode the arguments? Properly encoding the arguments i

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-20 Thread Ruslan Sivak
Krist van Besien wrote: On Feb 19, 2008 11:35 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: Logs: for somehostname.com/u/testing test 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] [somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) init rewrite engine with requested uri /u/testing test 127.0

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-20 Thread Krist van Besien
On Feb 19, 2008 11:35 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: > Logs: > > for somehostname.com/u/testing test > > 127.0.0.1 - - [19/Feb/2008:17:25:33 --0500] > [somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) init rewrite > engine with requested uri /u/testing test > 127.0.0.1 - - [19/Feb

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-19 Thread Nils Jeppe
On Tue, 19 Feb 2008, Ruslan Sivak wrote: for somehostname.com/u/#1 test 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) init rewrite engine with requested uri /u/#1 test 127.0.0.1 - - [19/Feb/2008:17:32:41 --0500] [somehostname.com/sid#7680

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-19 Thread Ruslan Sivak
Eric Covener wrote: On Feb 19, 2008 3:37 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: I have the following rewrite rule RewriteRule ^/u/(.+)/*$ /index.html?user=$1 [P,NC] for some reason this rule is not working for things like this /u/Testing test /u/#1 Test etc. What am I missing? I t

Re: [EMAIL PROTECTED] RewriteRule problem

2008-02-19 Thread Eric Covener
On Feb 19, 2008 3:37 PM, Ruslan Sivak <[EMAIL PROTECTED]> wrote: > I have the following rewrite rule > > RewriteRule ^/u/(.+)/*$ /index.html?user=$1 [P,NC] > > for some reason this rule is not working for things like this > > /u/Testing test > /u/#1 Test > > etc. What am I missing? I though .+ w

[EMAIL PROTECTED] RewriteRule problem

2008-02-19 Thread Ruslan Sivak
I have the following rewrite rule RewriteRule ^/u/(.+)/*$ /index.html?user=$1 [P,NC] for some reason this rule is not working for things like this /u/Testing test /u/#1 Test etc. What am I missing? I though .+ would match everything? Russ --

Re: [EMAIL PROTECTED] RewriteRule: foo.com/directory --> foo.com/directory/

2008-02-04 Thread Eric Covener
On Feb 4, 2008 5:20 PM, thomas Armstrong <[EMAIL PROTECTED]> wrote: > I tried adding this line > - > RewriteRule ^(.*)$ /$1/ [R=301] > - > The page isn't redirecting properly At least protect it from running when the URL ends in a slash such as: RewriteRule ^(.*[^/])$ /$1/ [R=301

[EMAIL PROTECTED] RewriteRule: foo.com/directory --> foo.com/directory/

2008-02-04 Thread thomas Armstrong
Hi. Using Apache 2, I want to create a RewriteRule within the '.htaccess' file which redirects from: http://foo.com/directory to http://foo.com/directory/ This last "directory" is a RewriteRule: -- RewriteRule ^([^/]+)/$ /directory.php?label=$1 [L] - I tried adding this line

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-13 Thread Nick Kew
On Sun, 13 Jan 2008 12:37:54 + Mike Cardwell <[EMAIL PROTECTED]> wrote: > > [B] was new in 2.2.7. > > 2.2.6 is the latest version I can find on > http://httpd.apache.org/download.cgi, which makes me wonder why the > documentation includes stuff that doesn't even exist in a stable > release

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-13 Thread Mike Cardwell
Nick Kew wrote: See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)$ http://www.uskonnonvapaus.fi/apache-bug/1/foo.php?q=$1 [P] and this gives $1 only part to first space. However, on What happens if you add [B] to the [P] rule

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-11 Thread Jori Mantysalo
On Fri, 11 Jan 2008, Nick Kew wrote: See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)$ http://www.uskonnonvapaus.fi/apache-bug/1/foo.php?q=$1 [P] and this gives $1 only part to first space. What happens if you add [B] to the

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-11 Thread Nick Kew
On Fri, 11 Jan 2008 12:03:22 +0200 (EET) Jori Mantysalo <[EMAIL PROTECTED]> wrote: > On Thu, 10 Jan 2008, Pau Garcia i Quiles wrote: > > >> See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two > >> > >> There is per-directory .htaccess that says > >> > >> RewriteRule ^(.+)$ > >> http://www.u

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-11 Thread Jori Mantysalo
On Thu, 10 Jan 2008, Pau Garcia i Quiles wrote: See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)$ http://www.uskonnonvapaus.fi/apache-bug/1/foo.php?q=$1 [P] and this gives $1 only part to first space. However, on What ha

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-10 Thread Pau Garcia i Quiles
Quoting Jori Mantysalo <[EMAIL PROTECTED]>: I asked about this two weeks ago. Anyone got ideas? If not, who is right person to contact? Maintainer of mod_proxy or mod_rewrite? See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)

[EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-10 Thread Jori Mantysalo
I asked about this two weeks ago. Anyone got ideas? If not, who is right person to contact? Maintainer of mod_proxy or mod_rewrite? See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)$ http://www.uskonnonvapaus.fi/apache-bug/1/f

[EMAIL PROTECTED] RewriteRule, [P] and space on URL

2007-12-27 Thread Jori Mantysalo
See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)$ http://www.uskonnonvapaus.fi/apache-bug/1/foo.php?q=$1 [P] and this gives $1 only part to first space. However, on http://www.uskonnonvapaus.fi/apache-bug/2/one%20two there is

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-14 Thread Neil A. Hillard
Hi, Vincent Bray wrote: > On 14/12/2007, Neil A. Hillard <[EMAIL PROTECTED]> wrote: >> To me this doesn't make sense. All rewriting is relative to the >> DocumentRoot anyway so you shouldn't have to include it in the >> RewriteRule. You can't use RewriteRule to map to arbitrary directories >> in

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-14 Thread Vincent Bray
On 14/12/2007, Neil A. Hillard <[EMAIL PROTECTED]> wrote: > To me this doesn't make sense. All rewriting is relative to the > DocumentRoot anyway so you shouldn't have to include it in the > RewriteRule. You can't use RewriteRule to map to arbitrary directories > in the filesystem. Hi Neil, Tha

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-14 Thread Neil A. Hillard
Hi, Samuel Vogel wrote: > It seems like Apache just forgets about the "../". A relative path to > "../wcf/" called from "wbb.samy.domain.de" results in the following: > [Thu Dec 13 21:26:24 2007] [error] [client 160.94.18.117] File does not > exist: /data/apache/users/domain.de/samy/www/wbb/wcf, r

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Samuel Vogel
It seems like Apache just forgets about the "../". A relative path to "../wcf/" called from "wbb.samy.domain.de" results in the following: [Thu Dec 13 21:26:24 2007] [error] [client 160.94.18.117] File does not exist: /data/apache/users/domain.de/samy/www/wbb/wcf, referer: http://wbb.samy.domain

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Vincent Bray
On 13/12/2007, Samuel Vogel <[EMAIL PROTECTED]> wrote: > I don't understand why it worked beforehand with my insecure RewriteRule. > Also in my opinion mod_rewrite should/does not change the path, it just > makes it appear different!? > > For example, when I call "samy.domain.de/wbb" it works, but

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Samuel Vogel
Vincent Bray schrieb: On 13/12/2007, Samuel Vogel <[EMAIL PROTECTED]> wrote: I did that, but unfortunately it breaks something else, which worked before. When a page in a subdirectory tried to get an image from an directory relative to the docroot, that does not work anymore. This can be seen

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Vincent Bray
On 13/12/2007, Samuel Vogel <[EMAIL PROTECTED]> wrote: > I did that, but unfortunately it breaks something else, which worked > before. When a page in a subdirectory tried to get an image from an > directory relative to the docroot, that does not work anymore. > This can be seen here: http://tinyur

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Samuel Vogel
Ok, thanks for the hint! I did that, but unfortunately it breaks something else, which worked before. When a page in a subdirectory tried to get an image from an directory relative to the docroot, that does not work anymore. This can be seen here: http://tinyurl.com/37owgr How can I fix this?

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Krist van Besien
On Dec 13, 2007 7:31 PM, Samuel Vogel <[EMAIL PROTECTED]> wrote: > Hey guys, > > I just noticed a really bad security problem on my servers! > The following RewriteRule exposes my system directories like /etc and > /var etc. : > > RewriteCond %{HTTP_HOST} !^www\.user\.domain\.de > RewriteCond %{HTT

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Vincent Bray
On 13/12/2007, Samuel Vogel <[EMAIL PROTECTED]> wrote: > I just noticed a really bad security problem on my servers! > The following RewriteRule exposes my system directories like /etc and > /var etc. : Hi, This is a common misconception, sadly. Documented here: http://wiki.apache.org/httpd/Rewr

Re: [EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Samuel Vogel
I guess I would have to mention, that this is inside of the virtual host definition! Samuel Vogel schrieb: Hey guys, I just noticed a really bad security problem on my servers! The following RewriteRule exposes my system directories like /etc and /var etc. : RewriteCond %{HTTP_HOST} !^www\.

[EMAIL PROTECTED] RewriteRule exposing system directories

2007-12-13 Thread Samuel Vogel
Hey guys, I just noticed a really bad security problem on my servers! The following RewriteRule exposes my system directories like /etc and /var etc. : RewriteCond %{HTTP_HOST} !^www\.user\.domain\.de RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+)\.user\.domain\.de RewriteRule (.*) /%2/$1 [L]

Re: [EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread Krist van Besien
On 10/22/07, Joshua Slive <[EMAIL PROTECTED]> wrote: > On 10/22/07, Krist van Besien <[EMAIL PROTECTED]> wrote: > > On 10/22/07, BP Jonsson <[EMAIL PROTECTED]> wrote: > > > How should I write a rewrite rule so that it appears to > > > visitors that they are at http://foo(.*) but the files > > > res

Re: [EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread Joshua Slive
On 10/22/07, Krist van Besien <[EMAIL PROTECTED]> wrote: > On 10/22/07, BP Jonsson <[EMAIL PROTECTED]> wrote: > > How should I write a rewrite rule so that it appears to > > visitors that they are at http://foo(.*) but the files > > reside at http://bar/site/foo? Supposing that the rewrite > > rule

Re: [EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread Krist van Besien
On 10/22/07, BP Jonsson <[EMAIL PROTECTED]> wrote: > How should I write a rewrite rule so that it appears to > visitors that they are at http://foo(.*) but the files > reside at http://bar/site/foo? Supposing that the rewrite > rule is in a .htaccess under the foo root directory, what > should it l

[EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread BP Jonsson
How should I write a rewrite rule so that it appears to visitors that they are at http://foo(.*) but the files reside at http://bar/site/foo? Supposing that the rewrite rule is in a .htaccess under the foo root directory, what should it look like? TIA, /BP -

Re: [EMAIL PROTECTED] rewriterule help

2007-09-12 Thread Bj
You could try something like that RewriteEngine On RewriteCond %{HTTP_HOST} demo.mysite.com [NC] RewriteCond %{QUERY_STRING} .*logout=1.* [NC] RewriteRule ^/.* http://www.mysite.com [L,R=302] -- Bj On 9/12/07, Aziz Sasmaz <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > I want to write a rule.

[EMAIL PROTECTED] rewriterule help

2007-09-12 Thread Aziz Sasmaz
Hi all, I want to write a rule. When visitors logs out from our demo site i dont want them to to see demo sites index page. I want to reidirect them to the original site using rewriterules.. For example when apache sees the site http://demo.mysite.com/srv/home?logout=1 It has to redirect i

Re: [EMAIL PROTECTED] RewriteRule advice

2007-08-06 Thread Joshua Slive
On 8/6/07, wi <[EMAIL PROTECTED]> wrote: > Hi all > > I need to create a rule to map requests such as > > /names/123/data > > to > > /names/1/2/3/data > > I can't control how many digits I need to split up like this, which is where > my regex skillz are breaking down. RewriteRule ^/names/([0-9]/)*

[EMAIL PROTECTED] RewriteRule advice

2007-08-06 Thread wi
Hi all I need to create a rule to map requests such as /names/123/data to /names/1/2/3/data I can't control how many digits I need to split up like this, which is where my regex skillz are breaking down. Any ideas? thanks Wayne -- 2X7 -> %A-3+ -> %K-7+ -> %9-?+ -> %Q-8 -> ?9-?9+

[EMAIL PROTECTED] RewriteRule Problem

2007-07-18 Thread tina exner
i´ve got it ;-) @martijn thanks for your help. RewriteCond %{HTTP_USER_AGENT} .*nokia.* [NC,OR] [...] RewriteCond %{HTTP_USER_AGENT} .*safari.* [NC] RewriteRule ^/$ http://www.domain.de/XY2/ [R,L] RewriteCond %{HTTP_USER_AGENT} .*nokia.* [NC,OR] [...] RewriteCond %{HTT

Re: [EMAIL PROTECTED] RewriteRule Problem

2007-07-17 Thread Martijn
On 7/17/07, tina exner <[EMAIL PROTECTED]> wrote: I have the below RewriteRules configured in my httpd.conf (Apache Version 2.0.54) But i never reach the site XY1, because: (rewrite.log)...explicitly forcing redirect with... I changed the Flags but it still doesn´t work. How do i have to configur

[EMAIL PROTECTED] RewriteRule Problem

2007-07-17 Thread tina exner
hi, I have the below RewriteRules configured in my httpd.conf (Apache Version 2.0.54) But i never reach the site XY1, because: (rewrite.log)...explicitly forcing redirect with... I changed the Flags but it still doesn´t work. How do i have to configure it to work correctly ? RewriteCond %{HTTP

Re: [EMAIL PROTECTED] RewriteRule/Cond Assistance

2007-07-16 Thread Joshua Slive
On 7/16/07, Mike @ Levrah <[EMAIL PROTECTED]> wrote: ## RewriteRule ^/index.mv [L] # Don't affect main index RewriteRule ^/admin [L] # Don't affect /admin directory RewriteRule ^/gallery [L] # Don't affect /gall

Re: [EMAIL PROTECTED] RewriteRule/Cond Assistance

2007-07-16 Thread Mike @ Levrah
At 07:11 PM 7/16/2007, you wrote: On 7/16/07, Mike @ Levrah <[EMAIL PROTECTED]> wrote: Hey guys. It looks like I'm not the only one having rewriterule/cond fun lately. LOL I'm having a tough time figuring this out, and it's probably something simple that I'm making harder than it is. Rather t

Re: [EMAIL PROTECTED] RewriteRule/Cond Assistance

2007-07-16 Thread Joshua Slive
On 7/16/07, Mike @ Levrah <[EMAIL PROTECTED]> wrote: Hey guys. It looks like I'm not the only one having rewriterule/cond fun lately. LOL I'm having a tough time figuring this out, and it's probably something simple that I'm making harder than it is. Rather than post examples of what I've trie

Re: [EMAIL PROTECTED] RewriteRule with a dot in URL

2007-07-16 Thread Joshua Slive
On 7/16/07, Thierry Kennes <[EMAIL PROTECTED]> wrote: I've just tried : RewriteRule ^Test\.com$ Testcom and RewriteRule (.*)\.(.*) $1$2 as you suggested. Here is the message i get with the browser : The requested URL /Test.com was not found on this server. Server error and access logs (and of

[EMAIL PROTECTED] RewriteRule/Cond Assistance

2007-07-16 Thread Mike @ Levrah
Hey guys. It looks like I'm not the only one having rewriterule/cond fun lately. LOL I'm having a tough time figuring this out, and it's probably something simple that I'm making harder than it is. Rather than post examples of what I've tried - since none of them work - and it'll show my maj

Re: [EMAIL PROTECTED] RewriteRule with a dot in URL

2007-07-16 Thread Thierry Kennes
I've just tried : RewriteRule ^Test\.com$ Testcom and RewriteRule (.*)\.(.*) $1$2 as you suggested. Here is the message i get with the browser : The requested URL /Test.com was not found on this server. the .htaccess file : RedirectMatch ^/wiki/([A-Z].*)$ http://wiki.tpkennes.com/$1 RewriteEngi

Re: [EMAIL PROTECTED] RewriteRule with a dot in URL

2007-07-16 Thread Joshua Slive
On 7/16/07, Thierry Kennes <[EMAIL PROTECTED]> wrote: Thanks Joshua for your advice. Though it didn't worked. It's like if the server is trying to find a file named "Test.com" like if it was index.php. So i don't know what should i have to do ... btw, i'm using mediawiki. Statements like "it d

Re: [EMAIL PROTECTED] RewriteRule with a dot in URL

2007-07-16 Thread Thierry Kennes
Thanks Joshua for your advice. Though it didn't worked. It's like if the server is trying to find a file named "Test.com" like if it was index.php. So i don't know what should i have to do ... btw, i'm using mediawiki. Joshua Slive-2 wrote: > > When you say "it doesn't work because of the dot"

Re: [EMAIL PROTECTED] RewriteRule with a dot in URL

2007-07-14 Thread Joshua Slive
On 7/13/07, Thierry Kennes <[EMAIL PROTECTED]> wrote: Hi there, I completely new in Apache config and all that stuff. I've got a wiki (for example : http://wiki.thierrykennes.com) and when I want to create a page Test.com so that it looks like this : http://wiki.thierrykennes.com/Test.com, it do

[EMAIL PROTECTED] RewriteRule with a dot in URL

2007-07-13 Thread Thierry Kennes
Hi there, I completely new in Apache config and all that stuff. I've got a wiki (for example : http://wiki.thierrykennes.com) and when I want to create a page Test.com so that it looks like this : http://wiki.thierrykennes.com/Test.com, it doesn't work because of the dot. I was told to look

Re: [EMAIL PROTECTED] RewriteRule ignored in .htaccess file in Apache 2.2.3

2007-04-24 Thread Joshua Slive
On 4/24/07, uxwrstre <[EMAIL PROTECTED]> wrote: I tried to use RewriteRule in a .htaccess file and it does not work. Its totally ignored by mod_rewrite. And its strange because in the configuration file of Apache it works. RewriteRule ^/intranet$ /internet [R] Prefix matching

[EMAIL PROTECTED] RewriteRule ignored in .htaccess file in Apache 2.2.3

2007-04-24 Thread uxwrstre
Hello, I have a problem: I tried to use RewriteRule in a .htaccess file and it does not work. Its totally ignored by mod_rewrite. And its strange because in the configuration file of Apache it works. And I put in the main configuration file: Options Indexes FollowSymLinks MultiVie

[EMAIL PROTECTED] RewriteRule shennanigans

2007-02-02 Thread cristopher pierson ewing
Hi there. I've got a set of rewrite rules designed to allow for search-engine freindly URLs. An example rule looks like this: RewriteRule ^(register|course)/([A-Z]{2,2}[0-9]{4,4}) $1.php?id=$2 This rule has been working for the past year or so in rewriting URLs like http://my.server.com/reg

Re: [EMAIL PROTECTED] RewriteRule not executed with https

2007-02-02 Thread Krist van Besien
On 2/2/07, Andreas Matthias <[EMAIL PROTECTED]> wrote: My RewriteRule is working for http connections but not for https connections. In my .htaccess I have the following RewriteRule: RewriteEngine on RewriteBase /drupal/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAM

Re: [EMAIL PROTECTED] RewriteRule not executed with https

2007-02-02 Thread Olaf Lautenschlaeger
On Friday, February 02, 2007 11:59 AM [GMT+1=CET], Andreas Matthias <[EMAIL PROTECTED]> wrote: > But if I am trying to connect to https://localhost/drupal/ the > RewriteRule doesn't seem to be executed. You probably need to have 'RewriteEngine On' (and of course all the rule set too) for the http

[EMAIL PROTECTED] RewriteRule not executed with https

2007-02-02 Thread Andreas Matthias
My RewriteRule is working for http connections but not for https connections. In my .htaccess I have the following RewriteRule: RewriteEngine on RewriteBase /drupal/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] This

Re: [EMAIL PROTECTED] RewriteRule

2007-01-31 Thread Joshua Slive
On 1/31/07, Javier Martínez Fernández <[EMAIL PROTECTED]> wrote: Thanks, but I can't understand this. I'm a newbie on apache config. Some more help, please? El 31/01/2007, a las 21:04, Joshua Slive escribió: > On 1/31/07, Javier Martínez Fernández <[EMAIL PROTECTED]> wrote: >> I'm making a rew

Re: [EMAIL PROTECTED] RewriteRule

2007-01-31 Thread Javier Martínez Fernández
Thanks, but I can't understand this. I'm a newbie on apache config. Some more help, please? El 31/01/2007, a las 21:04, Joshua Slive escribió: On 1/31/07, Javier Martínez Fernández <[EMAIL PROTECTED]> wrote: I'm making a rewrite rule and I'm having problems with the "?" character Read the

Re: [EMAIL PROTECTED] RewriteRule

2007-01-31 Thread Joshua Slive
On 1/31/07, Javier Martínez Fernández <[EMAIL PROTECTED]> wrote: I'm making a rewrite rule and I'm having problems with the "?" character Read the box labeled "Note: Query String" under http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule Joshua. -

[EMAIL PROTECTED] RewriteRule

2007-01-31 Thread Javier Martínez Fernández
I'm making a rewrite rule and I'm having problems with the "?" character My rule is this RewriteRule ^([a-z0-9-]+)/?([a-z0-9-]+)?/?([0-9]+)?\?([a-z0-9=]+)?$ index.php?controller=$1&action=$2&id=$3&$4 [NC,L] and the url I test is "http://localhost:/kmodo/something/more/1? mivar=5" It doesn

RE: [EMAIL PROTECTED] RewriteRule oddity

2006-12-14 Thread Richard Lynch
On Tue, December 12, 2006 1:22 am, Boyle Owen wrote: >> -Original Message- >> From: Richard Lynch [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, December 12, 2006 2:32 AM >> To: users@httpd.apache.org >> Subject: [EMAIL PROTECTED] RewriteRule oddity >> &

RE: [EMAIL PROTECTED] RewriteRule oddity

2006-12-11 Thread Boyle Owen
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 12, 2006 2:32 AM > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] RewriteRule oddity > > I have a RewriteRule that works on all but one (1) input where I woul

[EMAIL PROTECTED] RewriteRule oddity

2006-12-11 Thread Richard Lynch
I have a RewriteRule that works on all but one (1) input where I would expect it to work. Here is the site (currently very ugly, but functional): http://telephonebook.com/index.php The example redirect links all work. If you try it with '2' the re-direct behaves as expected: http://telephonebook

[EMAIL PROTECTED] RewriteRule - Trailing slash required on Url

2006-12-07 Thread Dave Kennedy
After installing RoR on Apache 1.3 there is a problem with the trailing Slash HowtoInstallAndRunRubyOnRailsOnCpanel http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpane l Problem This url displays the site 1. http://www.yourtestdomain.com/rails/ but this displays 400 Bad Re

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-17 Thread Darly Coupet
Hi Josha, Thanks for excellent advise; the following works: RewriteCond %{REQUEST_URI} ^/Merchant2/merchant.mv [NC] RewriteCond %{QUERY_STRING} ^Screen\=CTGY\&Store_Code=AWLAS\&Category_Code\=Abc+Xyz$ RewriteRule (.*) http://www.sitename.com/index.php?action=view_user&user=2[R=301,L] On 11/17/0

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-17 Thread Darly Coupet
Hi Josha, Thanks for your patience and help. I do not have access to a server and the application that is serving the old url's. I think it is a syntax issue, one old URL routed to one new URL. Old url http://www.sitename.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-17 Thread Joshua Slive
On 11/16/06, Darly Coupet <[EMAIL PROTECTED]> wrote: I have also tried with quotes, same error message RewriteLog "/usr/local/var/apache/logs/rewrite.log" > your security could be compromised if the directory where logfiles are stored is writable by anyone other than the user that starts the se

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Darly Coupet
I have also tried with quotes, same error message RewriteLog "/usr/local/var/apache/logs/rewrite.log" your security could be compromised if the directory where logfiles are stored is writable by anyone other than the user that starts the server. I am on a virtual host, Hosting provider is pro

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Darly Coupet
I udated the Rewrite rule as follows: RewriteRule merchant.mv http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L] It is not being rerouted. #This RewriteLog line gives an error message RewriteLog /home/site/www/Merchant2/logs_server_rewrite.txt 500 Internal Server error The serv

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Joshua Slive
On 11/16/06, Darly Coupet <[EMAIL PROTECTED]> wrote: Old url http://www.sitename.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz New URL http://www.sitename.com/index.php?action=view_user&user=2 htaccess is located in folder Merchant2 RewriteEngine On RewriteBase /

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Darly Coupet
Old url http://www.sitename.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz New URL http://www.sitename.com/index.php?action=view_user&user=2 htaccess is located in folder Merchant2 RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^Screen=CTGY&Store_Code=A

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Joshua Slive
On 11/16/06, Darly Coupet <[EMAIL PROTECTED]> wrote: RewriteCond %{QUERY_STRING} /Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz RewriteRule ^/$ http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L] The condition is not met; It is going to the old url. It

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Darly Coupet
RewriteCond %{QUERY_STRING} /Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz RewriteRule ^/$ http://www.sitename.com/index.php?action=view_user&user=2[R=301,L] The condition is not met; It is going to the old url. It should redirect to the new url when the old string (url

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Joshua Slive
On 11/16/06, Darly Coupet <[EMAIL PROTECTED]> wrote: RewriteRule ^/merchant.mv\?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$ http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L] I have tried the above, but not working. Telling us that it is "not working" is not a good way

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Darly Coupet
RewriteRule ^/merchant.mv\?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$ http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L] I have tried the above, but not working. Thanks, Darly On 11/16/06, Joshua Slive <[EMAIL PROTECTED]> wrote: On 11/16/06, Darly Coupet <[EMAIL PROT

Re: [EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Joshua Slive
On 11/16/06, Darly Coupet <[EMAIL PROTECTED]> wrote: Hi, Unable to get Rewriterule working I have modified htaccess file in folder Merchant2 as follows: RewriteEngine On #RewriteRule ^old/URL/path$ http://yourdomain.com/new/path [R=301,L] Redirect 301 /Merchant2/merchant.mv?Screen=CTGY&Store_

[EMAIL PROTECTED] Rewriterule syntax not working

2006-11-16 Thread Darly Coupet
Hi, Unable to get Rewriterule working I have modified htaccess file in folder Merchant2 as follows: RewriteEngine On #RewriteRule ^old/URL/path$ http://yourdomain.com/new/path [R=301,L] Redirect 301 /Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz http://www.sitename.c

Re: [EMAIL PROTECTED] RewriteRule

2006-08-04 Thread Joshua Slive
On 8/4/06, Ikke Snoeckx <[EMAIL PROTECTED]> wrote: Hello all I seem to have a weird problem with a RewriteRule... RewriteCond %{HTTP_USER_AGENT} !^Mozilla/5.* [OR] RewriteCond %{HTTP_USER_AGENT} !^Opera.* RewriteRule ^/$ http://www.getfirefox.com [R] Basically, I want every MSIE to be redirect

[EMAIL PROTECTED] RewriteRule

2006-08-04 Thread Ikke Snoeckx
Hello all I seem to have a weird problem with a RewriteRule... RewriteCond %{HTTP_USER_AGENT} !^Mozilla/5.* [OR] RewriteCond %{HTTP_USER_AGENT} !^Opera.* RewriteRule ^/$ http://www.getfirefox.com [R] Basically, I want every MSIE to be redirected to getfirefox.com (please don't argue or ask why

Re: [EMAIL PROTECTED] RewriteRule to redirect to one of many directories

2006-07-06 Thread Joshua Slive
On 7/6/06, Michael <[EMAIL PROTECTED]> wrote: Hello, everyone. I've got a bunch of directories like http://www.example.com/mem_AAA/mem_AAA.htm, where AAA is a member's initials. I'm trying to redirect all traffic to these directories to their new location: http://www.example.com/members/mem_AA

[EMAIL PROTECTED] RewriteRule to redirect to one of many directories

2006-07-06 Thread Michael
Hello, everyone. I've got a bunch of directories like http://www.example.com/mem_AAA/mem_AAA.htm, where AAA is a member's initials. I'm trying to redirect all traffic to these directories to their new location: http://www.example.com/members/mem_AAA/mem_AAA.htm So I've tried countless combinati

Re: [EMAIL PROTECTED] RewriteRule works on 1.3 but not 2.2

2006-03-27 Thread Robert Ionescu
Graham Frank wrote: RewriteRule ^album/([a-z0-9]*)/category/([0-9-]*)/img/([0-9-]*)/?$ displayimage.php?album=$1&cat=$2&pos=$3 Did you check the RewriteLog? So you're using the rule in your section? Because it is per-dir context (and since you have access to httpd.conf, there is no need to

[EMAIL PROTECTED] RewriteRule works on 1.3 but not 2.2

2006-03-27 Thread Graham Frank
Hello all, I am having a very strange issue with mod_rewrite. I am in the process of preparing a new web server to production, and I have been testing the various scripts and programs we use to verify that everything works properly. My major issue is that a specific rewrite rule that works

Re: [EMAIL PROTECTED] RewriteRule being ignored

2006-02-21 Thread Robert Ionescu
David Hull wrote: ServerName www.myserver.com RewriteEngine On RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 ProxyPass /download/ http://www.myserver.com/download/ ProxyPassReverse /download/ http

[EMAIL PROTECTED] RewriteRule being ignored

2006-02-20 Thread David Hull
I am running apache 2.0.50 on SuSE 9.2. I also run Tomcat 5.0.28 and pass connections to it from Apache. I installed Apache from the SuSE package. My RewriteRule is not working. It appears to be completely ignored. Connections get passed to Tomcat via the Proxy pass w/o being rewritten. I ha

[EMAIL PROTECTED] RewriteRule and Environment variables...

2006-01-23 Thread Neil A. Hillard
Hi, Robert Ionescu wrote: Neil A. Hillard wrote: Hi, I've been bashing my head against the wall with this problem for a while now and apart from a headache haven't really got anywhere. I currently have Apache (2.0.54 but I've tried 2.0.55), built from source, running as an accelera

Re: [EMAIL PROTECTED] RewriteRule and Environment variables...

2006-01-23 Thread Robert Ionescu
Neil A. Hillard wrote: Hi, I've been bashing my head against the wall with this problem for a while now and apart from a headache haven't really got anywhere. I currently have Apache (2.0.54 but I've tried 2.0.55), built from source, running as an accelerator to several backends. Wi

[EMAIL PROTECTED] RewriteRule and Environment variables...

2006-01-23 Thread Neil A. Hillard
Hi, I've been bashing my head against the wall with this problem for a while now and apart from a headache haven't really got anywhere. I currently have Apache (2.0.54 but I've tried 2.0.55), built from source, running as an accelerator to several backends. Without getting too deep into h

  1   2   >