Sitemaps: Support PATHINFO permalinks#4093
Conversation
5ac630e to
eb9d33f
Compare
|
Maybe I'm doing something wrong, but I was able to get a sitemap after setting permalinks to start with |
|
Remove everything from .htaccess. This would typically be done on servers without mod_rewrite and thus .htaccess rules not working. Should have mentioned that earlier up. Sorry about that! |
|
Ah, OK, it looks like I have no way to test it because I use nginx on my server - the path logic is different there. |
|
The alternative way to test -- confirm in the sitemap source that the stylesheet is loading using index.php in the permalink and that the module description (formerly the module card) gives the URL to the index.php variant of the sitemap. |
|
OK, I can confirm that the stylesheet is loaded using the proper URL now, thanks! |
|
Works well in my tests as well. Merging! |
This PR adds the other possibility for WP permalinks: PATHINFO via
index.php.To test:
/index.php//index.php/sitemap.xmlloads as does the stylesheet. Repeat for the news sitemap.sitemap.xml.?p=123, repeat 2 at/?jetpack-sitemap=trueVerify all load.