?
Solved

Transparent redirect with htaccess and/or mod_rewrite

Posted on 2004-10-09
6
Medium Priority
?
851 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 

Author Comment

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

Accepted Solution

by:
mrielf earned 540 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

743 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