Nudd Posted January 3, 2012 Share Posted January 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/254290-mod_rewriting-to-destinations-that-use-mod_rewrite/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.