Re: [EMAIL PROTECTED] help with rewrite rule - SOLVED!

2006-07-21 Thread Mike Soultanian
I'm still kinda shocked that I got it working, but I actually does what I wanted! I was messing around with this, and I have to admit that it was more trial and error than knowledge, but I got it: RewriteCond %{SCRIPT_FILENAME} /$ RewriteRule /(.*) http://localhost:81/$1/ [P]

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-21 Thread Boysenberry Payne
If I'm not mistaken from an earlier post, you actually want more than to just have http://cfdev.cota.csulb.edu/cota or http://cfdev.cota.csulb.edu/cota/ work. You want to also use the same rewrite for images, etc. Without knowing the full extent of what you expect the code to do I don't eve

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-19 Thread Mike Soultanian
Well, for example, I would like to be able to input either of the following into my browser: http://cfdev.cota.csulb.edu/cota or http://cfdev.cota.csulb.edu/cota/ and the web page will be displayed while the application server handling the requests all see localhost as the originating addres

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-19 Thread Boysenberry Payne
That's why I was saying you'd probably have to write something a little complicated. Its really hard if you don't already have a naming convention in mind. That way you could just force it to rewrite without the ending slash if you wanted. I think its adding the trailing slash because it assu

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-19 Thread Mike Soultanian
Hey Pid, I gave this a try: RewriteRule /(.*)(/)?$ http://localhost:81/$1$2 [P] and it's still converting: http://cfdev.cota.csulb.edu/cota to http://localhost:81/cota/ instead of: http://cfdev.cota.csulb.edu/cota/ Any ideas? thanks, Mike Pid wrote: RewriteRule /(.*)(/)?$ http://localho

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-18 Thread Nick Kew
On Monday 17 July 2006 19:40, Mike Soultanian wrote: > Hello, > We have to proxy our requests on our web server but we're running into > some problems. [ much discussion of over-complicated methods ensued, amongst which I see just one post mentioning at the simple and effective solution ] http:/

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Pid
RewriteRule /(.*)(/)?$ http://localhost:81/$1$2 you need the second dollar variable to pick up the second pair of brackets, instead of always appending a slash. Mike Soultanian wrote: > Boysenberry Payne wrote: >> How about adding this: >> >> RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P] >>

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Mike Soultanian
You know, I'm guessing that I'm getting that proxy loop error because the proxy is listening on both ports 80 and 81 (I have a virtual host on 81)? Just a guess mike Mike Soultanian wrote: See the ProxyPassReverse directive, whose job it is to correct trailing-slash redirects. (Hint: You

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Mike Soultanian
See the ProxyPassReverse directive, whose job it is to correct trailing-slash redirects. (Hint: You don't even need RewriteRule for this. ProxyPass will do fine.) Joshua. Hey Joshua, For kicks I tried ProxyPass (I really have no idea what I'm doing) using the following: proxyrequests off Pr

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Boysenberry Payne
Sounds you might need something a little more complicated. For example: RewriteRule ^(.*)habitat/(.*)$ http://localhost:81/pro/habitat.pl?account=data=$2 [P] Allowing me to read the whole url then process it. Otherwise you might want to rewrite for different directories, i.e. taking care o

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Joshua Slive
On 7/17/06, Mike Soultanian <[EMAIL PROTECTED]> wrote: Hello, We have to proxy our requests on our web server but we're running into some problems. I'm having a problem with the following rewrite rule: RewriteRule /(.*) http://localhost:81/$1 [P] If I do not specify the trailing slash when usi

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Mike Soultanian
Boysenberry Payne wrote: > How about adding this: > > RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P] > That almost worked! That's interesting because it gets me through to the page, but still leaves off the trailing slash. That in turn breaks the relative links which are looking for the t

Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Boysenberry Payne
How about adding this: RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P] Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jul 17, 2006, at 1:40 PM, Mike Soultanian wrote: Hello, We have to proxy our requests on our web server but we're running into some problems.

[EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Mike Soultanian
Hello, We have to proxy our requests on our web server but we're running into some problems. I'm having a problem with the following rewrite rule: RewriteRule /(.*) http://localhost:81/$1 [P] If I do not specify the trailing slash when using a folder name, I get an error. So, for example, i