Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with rewrite rule...

Status
Not open for further replies.

ediruzza

IS-IT--Management
Mar 12, 2002
1
US
We've been racking our heads trying to figure out what the syntax should be for this ReWrite Rule...

Here's what we are trying to do.

- We have a secured domain - it's called "- All the code for the domain is in the directory "f:/webstuff/code"
- There are additional folders beneath the 'code' folder (up to 5 levels deep)

So far, pretty simple...

- We are setting up clients with their own login in name, i.e. client1, client2, client3, etc.
- We would like to trap the clients name within the URL, however, we still want to redirect them to the main directory "F:/webstuff/code"
- Basically, the URL would look something like this for the above clients.
" " "
- Obviously, we don't want to create a 'clientN' folder for each client.
- We just want to redirect them back to the main folder.

Here's what we have in the ssl.conf file. (we are running Apache 2.0.37)

RewriteEngine On
RewriteRule (.*)/(.*) f:/webstuff/code/$2

The problem with this code is that any attempt to get past the 'code' folder results in an error 404.

So, " works...but,
" does not work...

I'm sure this is pretty simple...but we are new at this...

Thanks in advance to anyone who can help.

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top