johnnyk Posted March 29, 2008 Share Posted March 29, 2008 Hi all. I don't know much at all about .htaccess and would appreciate help with a simple .htaccess script. I have multisite Drupal set up. www.mysite.com points to ~/public_html. www.mysite.com/site2 also points to ~/public_html (via the symlink ~/public_html/site2). There is a ~/public_html/files directory. So www.mysite.com/files and www.mysite.com/site2/files point to the exact same directory. What I want to happen is this: If someone navigates to www.mysite.com/files/[filename], direct them to ~/public_html/files/[filename] If someone navigates to www.mysite.com/site2/files/[filename], direct them to ~/public_html/sites/www.mysite.com.site2/files/[filename] where [filename] is either a filename or something like path/to/filename Does anyone know how this could be accomplished, or know of a tutorial that might point me in the right direction? Thanks alot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.