Solved

Transparent redirect with htaccess and/or mod_rewrite

Posted on 2004-10-09
6
835 Views
Last Modified: 2008-02-01
Hi All,

This is what I plan to do:

Basically, I request a custom account with my webhost that has around 10mb space and 10mb bandwidth and lots of add-on domains. I register domains on behalf of my customers, and add each on to a separate directory. I create the same directory on my ISP webspace (with unlimited bandwidth), and use the apache mod_rewrite function to send all files requested from the newly added domains to the ISP hosting. Then I have a login on my ISP pages where my customers would be able to log in and upload files to their directory in the ISP hosting.

Theoretically, I think theirdomain.com/some.doc should go to ISPhosting.com/~user/theirdomain/some.doc.

I can't figure out how to make the redirects to be transparent. If there's an alternative solution I'd be happy to hear it. :)

Thanks,
Matt Phillips
0
Comment
Question by:noxiousneo
  • 2
6 Comments
 

Author Comment

by:noxiousneo
ID: 12277827
Updated to 135 points
0
 
LVL 5

Accepted Solution

by:
mrielf earned 135 total points
ID: 12402453
You must mount localy yorur dir form ISPHosting.

ISPhosting.com/~user/        -->   LocalMountDir

Set up ftp server to your customers with per account basedirs like:

user logs to theirdomain.com (witch is pointing to your machine) and FtpBasedir will be the LocalMountDir/theirdomain (with is realy ISPhosting.com/~user/theirdomain) and
/some.doc is ISPhosting.com/~user/theirdomain/some.doc

It's transparent to your customers untill you link is ok with your ISPHosting.com
If you lost connection, you can show a message to them that database is under maintenance.
0
 
LVL 5

Expert Comment

by:mrielf
ID: 12601593
I think my post is adequately answers asker problem.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question