[pmwiki-devel] help with htaccess coding?
Henrik
henrik.bechmann at sympatico.ca
Thu Nov 9 22:22:07 CST 2006
All,
I'm trying to set up a wiki farm, such that "parked" domain names are
internally redirected to the appropriate paths. As an example I have
bechmann.ca parked on to bechmannsoftware.ca.
There appears to be something really basic that I'm missing.
In htaccess if I write
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^bechmann\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.bechmann\.ca$
RewriteRule ^(.*) $1
and then enter bechmann.ca to the browser URL field, I get an error 500,
though to me this looks like it should just take what it finds and
substitute itself, ie no net change.
if I enter bechmann.ca/test.php I'm OK (there is a test.php file I put
there for feedback).
if I enter bechmann.ca/osscommons/home/test.php I'm OK
If I change the RewriteRule to
RewriteRule ^(.*) /osscommons/home/$1
And then enter bechmann.ca/test.php I get an error 500, although it
looks to me like it should take test.php and produce
/osscommons/home/test.php
If I change the RewriteRule to
RewriteRule ^(.*) /var/vhosts2/henrik/public_html/osscommons/home/test.php
and enter bechmann.ca
It works, but if I do
RewriteRule ^(.*)
/var/vhosts2/henrik/public_html/osscommons/home/osscommons.html
and enter bechmann.ca
I get the contents of the html page, but the styling (ie the relative
directory addressing) is lost.
If I do
RewriteRule ^(.*) /var/vhosts2/henrik/public_html/osscommons/home/$1
and enter bechmann.ca/test.php or bechmann.ca/osscommons.html I get an
error 500
I have no freakin' idea what's going on :-( and I've been tinkering
for hours.
What am I missing here? Can anyone give me a concept? or a configuration
clue??
Thanks
- Henrik
--
Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca
More information about the pmwiki-devel
mailing list