cmall / LocalHomePage

A Local Home Page for OSX Web Development
http://mallinson.ca/post/osx-web-development
305 stars 123 forks source link

wrong URL path #4

Open sebatorresi opened 9 years ago

sebatorresi commented 9 years ago

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.

nicholastillman commented 8 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

ProchazkaDavid commented 8 years ago

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 );
nicholastillman commented 8 years ago

Thanks got it working.

namsir commented 8 years ago

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.

cmall commented 8 years ago

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.

namsir commented 8 years ago

home.dev doesn't even work now. It redirect me to yahoo search page.

namsir commented 8 years ago

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:

joshuaneedham commented 8 years ago

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.