Solved

Transparent redirect with htaccess and/or mod_rewrite

Posted on 2004-10-09
6
838 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

790 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