1

I currently have a Laravel site up and running on Godaddy hosting.

What I want is to have a sub-domain.

mysite.xyz - main site

backoffice.mysite.xyz - admin

The main site is currently working.enter image description here

But the backoffice is notenter image description here

Here is my current routes fileenter image description here

How do I make this work?

Edit.

Here are my routes according to php artisan route:list and it's correct. But my sub-domain route is still not working. enter image description here

I've already created the sub-domain using cPanel and it's still not working. enter image description here

1
  • Sorry, I live in SYdney and was off due to time offset. Did you solve this already? Commented Feb 28, 2017 at 22:15

1 Answer 1

1

You need to setup the subdomain as well. You just created the domain and a route to the subdomain. You can create a subdomain using ServerName subdomainname.domainname.com in VirtualHost. Here is an example: https://www.digitalocean.com/community/questions/adding-a-subdomain-on-apache2

Sign up to request clarification or add additional context in comments.

5 Comments

I'm sorry.I don't know how to do this. I'm using GoDaddy, WHM, and cPanel. Is there any way to do it using any of these 3? I'm new to domain subdomain configuration.
Godaddy instructions au.godaddy.com/help/…
still the same thing. I created the sub-domain using cPanel so I know it's ready. But it's still not showing up.
You know when your domain is setup, even if you dont have laravel, you can still access it. Same applies to subdomain. You can't even access it. Neither coud Laravel.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.