Jump to content

Recommended Posts

I already have a functioning rewrite system that when someone requests one directorydirectory under the root,

it rewrites (in the background) the urls to point to a different location where all of the fully functional scripts are:

 

ie:

User goes to http://www.example.com/directory1/post.php and sees that in the URI string in their browser

The script that is invoked is actually http://www.example.com/admindirectory/post.php

 

User goes to http://www.example.com/directory2/get.php and sees that in the URI string in their browser

The script that is invoked is actually http://www.example.com/admindirectory/get.php

 

(Again, let's imagine this already works)

 

What I want to do is have domains on this account that 'silently' point to the selected directory and invoke the same sets

of above rewrites.

 

ie:

User goes to http://www.newexample.com/post.php and sees that in the URI string in their browser

The URI in the background is actually http://www.example.com/directory1/post.php

The script that is invoked is actually http://www.example.com/admindirectory/post.php

 

User goes to http://www.secondexample.com/get.php and sees that in the URI string in their browser

The URI in the background is actually http://www.example.com/directory2/get.php

The script that is invoked is actually http://www.example.com/admindirectory/get.php

 

Again, the directories rewrite properly on their own - how would I go about passing off rewrites from the document root to these functioning directories, maintaining the file and query strings so that the directory specific .htaccess files can interpret them correctly?

 

Thanks in advance for any help.

 

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.