logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Should i use rewritecond and rewriterule to replace userdir?
Author
jepilgrim



Joined: 21 Apr 2010
Posts: 1

PostPosted: Wed 21 Apr '10 19:07    Post subject: Should i use rewritecond and rewriterule to replace userdir? Reply with quote

In the past we had used the mod_userdir to allow employees/students to have their own websites. This worked fine since all of the users were in the same directory. However, now we have had to break up the users into two different directories (called vol1 and vol2) so the mod_userdir won't work.
We want to continue to use the convention that users had before with appending their id to the end of the website address (i.e. http://website.edu/~abc123) but also work with having the users in two different directories. Users won’t necessarily know what directory that they are in. What is the best approach to meet these requirements? It sounds like this would involve using RewriteCond and RewriteRule. See http://httpd.apache.org/docs/trunk/rewrite/remapping.html#multipledirs
Does anyone have a better idea?
Back to top


Reply to topic   Topic: Should i use rewritecond and rewriterule to replace userdir? View previous topic :: View next topic
Post new topic   Forum Index -> Apache