Skip to content

Commit

Permalink
Merge pull request #17 from gwa/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
prisis committed May 21, 2015
2 parents 9c562c8 + 7d93168 commit 96e122f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Install through composer.
composer require gwa/multisite-directory-resolver
```

### Init
### How to use

```php
// project root: path/to/project
Expand All @@ -35,6 +35,15 @@ $mdr = new Gwa\Wordpress\MultisiteDirectoryResolver('custom/install/path');
$mdr->init();
```

Set you cookie like to resolve the [wordpress multisite redirect Loop](https://tommcfarlin.com/resolving-the-wordpress-multisite-redirect-loop/)

```php
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
```

## Contributing

All code contributions - including those of people having commit access -
Expand Down

0 comments on commit 96e122f

Please sign in to comment.