Solved

Transparent redirect with htaccess and/or mod_rewrite

Posted on 2004-10-09
6
825 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
Comment Utility
Updated to 135 points
0
 
LVL 5

Accepted Solution

by:
mrielf earned 135 total points
Comment Utility
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
Comment Utility
I think my post is adequately answers asker problem.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Duplicate Records In MySQL 7 49
maven set up 2 104
PHP Upload using Uploadify 4 58
ports for sccm 2012 1 60
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). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now