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

Sitemap autoredirect (/sitemap.xml -> /wp-sitemap.xml) broken #32

Open
HunterSchindo-CU opened this issue Nov 26, 2024 · 1 comment
Open

Comments

@HunterSchindo-CU
Copy link

Sites created using the Cornell Branded theme return 404 when visiting /sitemap.xml, but wp-sitemap.xml works. Reading settings allow indexing, may also be limited to multi-site instances.

WordPress creates a /sitemap.xml -> wp-sitemap.xml redirect when initially set up. When creating a site using the Cornell Branded theme, the redirect is lost. As a result, new sites created on CampusPress were not getting crawled by Google, which seems to only look for /sitemap.xml.

This was tested on the cd-wpmulti.pantheonsite.io instance as of 11/26/24, but get some inconsistent results on CampusPress.

When testing, removing the permalink structure from the $core_settings array seemed to correct the issue.

cwd_base > functions > theme > setup.php

$core_settings = array(
'uploads_use_yearmonth_folders' => 0,
'default_pingback_flag' => 0,
'show_avatars' => 0,
'require_name_email' => 0,
'default_comment_status' => 1,
'page_comments' => 1,
'posts_per_page' => 12,
'site_icon' => upload_site_icon(),
'default_comments_page' => 'first',
'default_ping_status' => 'closed',
'date_format' => 'F j, Y',
'permalink_structure' => '/%category%/%postname%/'
);

@dc774
Copy link
Collaborator

dc774 commented Dec 22, 2024

Good troubleshooting. I guess that setting isn't so important, but does that mean the user can't use custom permalinks at all on CampusPress any time after activation? Those pretty permalinks are pretty important for some people.

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

2 participants