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

trailing slash issue in baseUrl #2

Open
igorjos opened this issue Oct 22, 2024 · 0 comments
Open

trailing slash issue in baseUrl #2

igorjos opened this issue Oct 22, 2024 · 0 comments

Comments

@igorjos
Copy link

igorjos commented Oct 22, 2024

The baseUrl should not contain the last "/" slash, so when adding URLs to the schema we can have:
$sitemap->addUrl('/', date('c'), 'daily', '1'); $sitemap->addUrl('/about', date('c'), 'daily', '1');

Current code doesn't work for the Root url , especially when you don't call the index.php file explicitly

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

1 participant