Multisite mod_rewrite rules
-
I have a WP multisite installed in domain.com/wp and it is intended for microsites my company has. There’s a non-Wordpress -site installed in domain.com and it cannot be moved, neither can I install WP to the root directory.
The problem:
I’d like to create shorter URLs for the microsites with Apache’s mod_rewrite. For example domain.com/site1 (that’s actually located in domain.com/wp/site1) would fetch the data from domain.com/wp/site1 while still maintaining the URL as domain.com/site1 in the browser’s URL field like this:
– Browser: domain.com/site1/frontpage, actual data: domain.com/wp/site1/frontpage/
– Browser: domain.com/site1/fruits/apple, actual data: domain.com/wp/site1/fruits/appleQuestion
Is it possible to somehow “pipe” the mod_rewrite -rules so that .htaccess in the root -directory would just remap the url domain.com/site1 to domain.com/wp and then WP’s .htaccess would take over from there?
If not, how could I achieve functionality like this?
- The topic ‘Multisite mod_rewrite rules’ is closed to new replies.