Jump to content

Use other domain to show sub-page


Dennis Spohr
 Share

Recommended Posts

Hi all,

this is my first post here - so let me say first: I love ProcessWire! :rolleyes:

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...