I have a wiki that is configured for short urls and just as I want it : some pages are readable by the world, the rest is just visible by those who work on the various projects it hosts. Let's say its url is mywiki.myinstitution.net
I ended up creating my webpage on that wiki and I want all the subpages of my user page to have the same domain name, which is different from the main wiki domain name (for instance me.myinstitution.com).
I started by defining rewriting rules with full urls :
#Current working (albeit redirect) configuration <VirtualHost me.myinstitution.com:80> ServerName me.myinstitution.com RewriteEngine On RewriteRule "^/*$" "http://mywiki.myinstitution.net/wk/User:Me" RewriteRule "^(/.*)" "http://mywiki.myinstitution.net/wk/User:Me1ドル" </VirtualHost>
but apache considers them as redirections, so they don't do exactly what I would like them to. The problem is that when I change them to the type of rewrites that will not be redirections, they obviously conflict with the global configuration of the wiki, and the pages are not even allowed access for anonymous users...
#example of type of rewrite I would like, not that I know if it would work in any way #but I want me.myinstitution.com to show exactly what mywiki.myinstitution.com/w/User:Me shows RewriteRule "^/*$" "/var/www/html/w/index.php/User:Me"
Is there hope to find a solution for my problem ?
NB : the configuration file looks like the following :
#Current working configuration <VirtualHost mywiki.myinstitution.net:80> ServerName mywiki.myinstitution.net ServerAdmin me@myinstitution.net DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/html/w/> Options FollowSymLinks </Directory> RewriteEngine On RewriteRule ^/?wk(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] # Redirect / to Main Page RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L] </VirtualHost>
Thanks for any input...