Skip to content

Wrong domain name when using Alias (DirectAdmin) #43

Description

@Noaber

Bug description

When using the plugin it's generating a sitemap.xml.
Awesome, however if I look into the sitemap.xml I see all links with domainA.eu.
This is the original url in DirectAdmin, but the site is available online as DomainB.eu (this is the alias in DirectAdmin).
This domainB.eu is also in the laravel .env.

I looked into the config, but I can not set the domain url. So where is the domain fetched from ?

Steps to reproduce

Make a Directadmin domain (domainA) and make a alias (domainB).
Set Laravel .env to use domainB as app url and goto sitemap.xml (you see domainA in the xml instead of domainB).

Environment and versions

APP_NAME="My Site"
APP_ENV=production
APP_KEY=bxxxxxx
APP_DEBUG=false
APP_URL=https://domainB.eu

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions