Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fatima1's avatar

deploy laravel in subdomain

i create subdomain in hostgator admin.abc.net then put all abc files in admin.abc.net folder and move index.php from public to admin.abc.net folder and change the redurect line

but it give this error

Sorry, this page doesn't exist. Please check the URL or go back a page.

404 Error. Page Not Found.

any help!!

0 likes
2 replies
Sergiu17's avatar

You don't need to move index.php in other folder, I don't remember exactly how to do this in hostgator, but you should configure you subdomain to point to your specific folder, example

Location: /var/www/html/your-subdomain-project/public

There should be an input for this somewhere

fatima1's avatar
fatima1
OP
Best Answer
Level 1

thank you, i moved all file from public to the root of subdomain ant it works like a charm

1 like

Please or to participate in this conversation.