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]
I'm kinda proud that I figured out the /$ (that itself took me a half
hour to figure out!). I totally suck at regular expressions, and you
know, I still don't understand why the above works, but it does!
now both of the following work:
http://cfdev.cota.csulb.edu/cota
http://cfdev.cota.csulb.edu/cota/
Thanks for all the help!
Mike
Boysenberry Payne wrote:
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 even know if mod_rewrite is right for the job.
To me it sounds like you might need some server-side technology like php
or perl
to do some URL processing and redirects...
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 19, 2006, at 5:47 PM, Mike Soultanian wrote:
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 address.
My apologies for not being more clear. cota is a folder, and the
problem is that it's not appending the trailing slash.
thanks!
mike
Boysenberry Payne wrote:
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 assumes cota is a
directory.
(Someone else on here might have a better explanation.)
What exactly are you trying to see happen, in human terms, i.e. how
would
you like the request to unfold.
Thanks,
Boysenberry
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]