Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong URL path #4

Open
sebatorresi opened this issue Oct 7, 2015 · 8 comments
Open

wrong URL path #4

sebatorresi opened this issue Oct 7, 2015 · 8 comments

Comments

@sebatorresi
Copy 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.

@nicholastillman
Copy link

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
Copy link

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
Copy link

Thanks got it working.

@namsir
Copy link

namsir commented Nov 21, 2015

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
Copy link
Owner

cmall commented Nov 21, 2015

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 [email protected] 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 #4 (comment).

@namsir
Copy link

namsir commented Nov 23, 2015

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

@namsir
Copy link

namsir commented Nov 24, 2015

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 💃

@joshuaneedham
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants