-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add Yoast SEO Sitemap XML Support #24
Comments
Hello, I am trying to enable Yoast SEO and also add trailing slash to all urls. Trailing slashrewrite ^([^.]*[^/])$ $1/ permanent; The problem i am having is that my root page http://www.domain.com is redirecting to http://www.domain.com/index.php/ adn not to http://www.domain.com/ also http://www.domain.com/sitemap.xml is not working. Do you have nay solution on this? |
I am also using expanded code for Yoast #Yoast SEO Sitemaps rewrite ^/news-sitemap.xml$ /index.php?sitemap=wpseo_news last; rewrite ^/locations.kml$ /index.php?sitemap=wpseo_local_kml last; rewrite ^/video-sitemap.xsl$ /index.php?xsl=video last; |
+1 |
1 similar comment
+1 |
Please add the following lines to a global file for Yoast XML Support:
rewrite /sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite /([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
The text was updated successfully, but these errors were encountered: