Hi all,
this is my first post here - so let me say first: I love ProcessWire!
I have the following scenario:
On my website users will be able to create their own site. This site is a page (in this case 'theirsite'): "www.mydomain.com/theirsite"
Now I want that they can use their own domain. So this domain needs to load their page:
"www.theirdomain.com" goes to "www.mydomain.com/theirsite" but while showing the first domain in the browser.
I'm trying to archive this with an htaccess entry:
RewriteCond %{HTTP_HOST} www\.retuschierenlernen\.de
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?it=retuschierenlernen/$1 [L,QSA]
I get the following error, because it loads the my main site, not the page of my user:
Warning: file_put_contents(/www/mysite/test/html/site/assets/cache/FileCompiler/site/templates/public-site.php): failed to open stream: Permission denied in /www/mysite/test/html/wire/core/FileCompiler.php on line 327
Thanks!
Dennis