{"action":"created","issue":{"url":"https://api.github.com/repos/wesleytodd/YeoPress/issues/160","labels_url":"https://api.github.com/repos/wesleytodd/YeoPress/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/wesleytodd/YeoPress/issues/160/comments","events_url":"https://api.github.com/repos/wesleytodd/YeoPress/issues/160/events","html_url":"https://github.com/wesleytodd/YeoPress/issues/160","id":81465194,"number":160,"title":"Installing WP as a submodule causes 404 error","user":{"login":"sheixt","id":2640190,"avatar_url":"https://avatars.githubusercontent.com/u/2640190?v=3","gravatar_id":"","url":"https://api.github.com/users/sheixt","html_url":"https://github.com/sheixt","followers_url":"https://api.github.com/users/sheixt/followers","following_url":"https://api.github.com/users/sheixt/following{/other_user}","gists_url":"https://api.github.com/users/sheixt/gists{/gist_id}","starred_url":"https://api.github.com/users/sheixt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheixt/subscriptions","organizations_url":"https://api.github.com/users/sheixt/orgs","repos_url":"https://api.github.com/users/sheixt/repos","events_url":"https://api.github.com/users/sheixt/events{/privacy}","received_events_url":"https://api.github.com/users/sheixt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-27T14:14:47Z","updated_at":"2015-05-27T20:49:36Z","closed_at":"2015-05-27T20:17:18Z","body":"## Issue brief\r\nI'm having an issue when attempting to run `yo wordpress` on my localhost (running on WAMPSERVER) and selecting the submodule option. After completing the installation, when I visit my site URL I'm presented with a 404 'Not Found' error.\r\n\r\n## Configuration settings:\r\n\r\n```\r\nWordPress URL: localhost/site-name\r\nTable prefix: lt_\r\nDatabase host: localhost\r\nDatabase name: site-name\r\nDatabase user: root\r\nDatabase Password: \r\nUse Git: Yes\r\nWould you like to install WordPress as a submodule? Yes\r\nWordPress install directory: cms\r\nWordPress content directory: content\r\nInstall custom theme? Yes\r\nDestination directory: yeopress\r\nTheme source type (git/tar): git\r\nTask runner (gulp/grunt): grunt\r\nGitHub username: wesleytodd\r\nGithub repository name: YeoPress\r\nRepository branch: template\r\n```\r\n\r\nThe installation of Git, the WP submodule and the theme all process without correctly and at the end I'm presented with the \"All Done!! ... \" notification. But when I visit `http://localhost/site-name` in my browser, I'm redirected to `http://localhost/cms/wp-admin/install.php` and (unsurprisingly) it gets a 404 (as the directory & file doesn't exist). Any suggestions on how I can resolve this problem?\r\n\r\n## Additional steps undertaken to try to find a workaround:\r\n\r\n1. I've attempted to amend the `WordPress install directory` to `site-name/cms` and *this works to a point*... When viewing the site URL in a browser I'm directed to the WP famous 5 minute install, but it is creating an additional directory in the URL structure `site-name/site-name/cms/...` which is a pain.\r\n\r\n2. I've also tried amending the `WordPress install directory` to `/cms` and I get an error saying:\r\n\r\n```\r\nError: { [Error: Command failed: The followingpath is ignored by one of your .gitignore files:\r\n/cms\r\n(this continues....)\r\n```\r\n\r\nNote: If I chose the non-submodule approach, the install works fine."},"comment":{"url":"https://api.github.com/repos/wesleytodd/YeoPress/issues/comments/106069679","html_url":"https://github.com/wesleytodd/YeoPress/issues/160#issuecomment-106069679","issue_url":"https://api.github.com/repos/wesleytodd/YeoPress/issues/160","id":106069679,"user":{"login":"sheixt","id":2640190,"avatar_url":"https://avatars.githubusercontent.com/u/2640190?v=3","gravatar_id":"","url":"https://api.github.com/users/sheixt","html_url":"https://github.com/sheixt","followers_url":"https://api.github.com/users/sheixt/followers","following_url":"https://api.github.com/users/sheixt/following{/other_user}","gists_url":"https://api.github.com/users/sheixt/gists{/gist_id}","starred_url":"https://api.github.com/users/sheixt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheixt/subscriptions","organizations_url":"https://api.github.com/users/sheixt/orgs","repos_url":"https://api.github.com/users/sheixt/repos","events_url":"https://api.github.com/users/sheixt/events{/privacy}","received_events_url":"https://api.github.com/users/sheixt/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T20:49:36Z","updated_at":"2015-05-27T20:49:36Z","body":"Haha brilliant! I'm grateful to have avoided that heartache. "}}