Open sebatorresi opened 9 years ago
I am having a similar issue, I have "sites" as my client folder ( /sites/clientname/ ). I get the homepage but once I click on a client., i get clientname.sites.dev
In index.php change line 50 from:
$siteroot = sprintf( 'http://%1$s.%2$s.%3$s', $project, $dirname, $tld );
to:
$siteroot = sprintf( 'http://%1$s.%2$s', $project, $tld );
Thanks got it working.
please help, newcomer here. I followed your instructions and i am able to go to home.dev. I created a folder in '~www/sites/basic' and i installed yii2 successfully. when i try to go to 'basic.dev' i got Not Found
The requested URL / was not found on this server.
You probably need to make sure the project root is '~www/sites/basic/www'
Give that a try.
On Nov 21, 2015, at 7:18 AM, nam tran notifications@github.com wrote:
please help, newcomer here. I followed your instructions and i am able to go to home.dev. I created a folder in '~www/sites/basic' and i installed yii2 successfully. when i try to go to 'basic.dev' i got Not Found
The requested URL / was not found on this server.
— Reply to this email directly or view it on GitHub https://github.com/cmall/LocalHomePage/issues/4#issuecomment-158651757.
home.dev doesn't even work now. It redirect me to yahoo search page.
nvm, got it working :) just because it didn't initialize the home.dev by visiting it after i set the dnsmasq to point at *.dev. Thanks dude, this is awesome :dancer:
Curious if anyone can share a fix for not adding .tld to files? For example it shows index.php.dev where it should only be index.php for the link.
I have my clients inside a folder called Work, and this folder is on the Dropbox. I'm using VirtualHostX and MAMP. When i use the "home.dev" i got the list of my clients sites but when i click on one of them i have the wrong url path on my browser "http://clientwork.work.dev". I can't figure out why "work" is between the client folder and the local domain.