© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
16 replies
th3ja

Hostinger Shared Hosting subdomain for admin panel

Hello everyone, nice to meet you! Would really appreciate your help if you have the time!
I've chosen Hostinger's Shared Hosting Plan for my project. I've successfully setup the "front-end" with Jetstream on the main domain.
What I'm trying to do:
Use a subdomain exclusively for filament without the need of creating a new project inside the subdomain's directory.
It's worth noting that everything lives within the same app.

What I did:
class AdminPanelProvider extends PanelProvider {
public function panel(Panel $panel): Panel {
return $panel
            ->default()
            ->id('admin')
            ->path('')
            ->domain(env('ADMIN_URL'))
class AdminPanelProvider extends PanelProvider {
public function panel(Panel $panel): Panel {
return $panel
            ->default()
            ->id('admin')
            ->path('')
            ->domain(env('ADMIN_URL'))

I've set up the subdomain as an env variable that I've configured within the production env. Not sure is this is the correct way to work in production because it works as expected locally.
✅ I've implemented the UserContract in the User model
The error:
403 forbidden
Below is a snippet of the project's root .htaccess that i've attempted with no luck
apache 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com [NC]
RewriteRule ^(.*)$ public/$1 [L]
apache 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com [NC]
RewriteRule ^(.*)$ public/$1 [L]
Solution
Wow I feel like an idiot. It wasn’t pointing to the project’s public folder. Filament is up & running now on subdomain as expected.
Thank you both so much. And sorry for the trouble.
P.d. I will probably be asking more help along the way 😅
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Admin Panel
FilamentFFilament / ❓┊help
2y ago
Shared hosting deployment
FilamentFFilament / ❓┊help
3y ago
Shared panel session
FilamentFFilament / ❓┊help
2y ago
User & Admin panel
FilamentFFilament / ❓┊help
3y ago