Let’s assume your plugin is writing to the /usr/share/wordpress/sitemap_index.xml
filesystem location, but you want it can be accessed through http://www.website.com/sitemap_index.xml
as if the xml file were stored in /var/www/html/sitemap_index.xml
. You can use the alias directive then, available in mainstream webservers Apache and NginX:
For an alias in NginX, you put this inside the server
of your public website:
location /sitemap_index.xml {
alias /usr/share/wordpress/sitemap_index.xml;
}
For Apache the alias it’s like this, inside the virtual host of your website:
Alias "/sitemap_index.xml" "/usr/share/wordpress/sitemap_index.xml"
Again, I’m only assuming filepaths and filenames, but if you need more specific directives, for another webserver, or differente paths/names, please comment it, or even better: update your question to make my answer match.
Related Posts:
- Why do I get a 404 for my sitemap index after installing Yoast? [closed]
- WordPress site running on Yoast not being indexed into Google News [closed]
- WordPress site using Yoast SEO being blocked from indexing by robots.txt
- how to add urls dynamically into the sitemap
- Display Yoast WordPress SEO title in archive template
- How to add a page to the Yoast breadcrumbs
- How to print meta description to posts? [closed]
- Removing “Noindex, follow” from pages [closed]
- Change content language for one page
- Add Page number to Meta Description in WordPress SEO by Yoast [closed]
- Manipulating wp_head content
- Yoast’s WordPress SEO plugin is not showing the correct snippet [closed]
- XML Sitemap : broken XML file [closed]
- make the url unlimited
- Query Post Based of Yoast Primary Category Class
- Wrong Canonical url link
- When does the Yoast SEO filter hook wpseo_sitemap_urlimages fire?
- How to parse Yoast SEO Snippet Variables
- Post content blank after disabling Yoast SEO
- With the Yoast SEO plugin, is it possible to make the meta description a required form field?
- help to write a custom php script to settingup yoast priority to pages or posts
- Yoast Seo Plugin – Set no-index to a post automatically when a post is set to sticky [closed]
- Yoast SEO Plugin: Double Title isse [closed]
- Yoast SEO creates sitemaps with a dash ‘-‘ but I can’t get Bing to accept them [closed]
- Edit title-tag in wp_head with yoast seo
- Way to change the Yoast Schema depending on post type? [closed]
- Change base URL of Yoast Sitemap [closed]
- Variable focus word YOAST
- How can I add a second Open Graph image to a site using Yoast? [closed]
- WordPress Sitemap including pages that aren’t there
- How to call Yoast Seo Tags without needing to call the whole wp_head?
- My WordPress website has 2 header [closed]
- Add content before Yoast description
- Twenty Eleven Theme – SEO Yoast duplicate site titles
- Add Page number to Meta Description in WordPress SEO by Yoast [closed]
- Blog home page has canonical link that is incorrect. Do not see where to change this
- How to Modify Breadcrumb Page Names for Specific Pages? [closed]
- P3 Profiler and Yoast SEO plugin
- How to use the Yoast SEO wpseo_canonical filter to set a canonical URL for /, /au/ & /uk/ sites in a MU environment
- Yoast Metadata API to adjust/override the meta description
- Prevent Yoast from removing the canonical tag if robots meta tag is set to noindex [closed]
- Fixing link rel=”next” in Yoast SEO for paginated links
- how to disable Yoast SEO schema from homepage only?
- WPML and Yoast SEO setup on a wordpress site is not working properly
- How to add a rest field to post tags?
- How to remove WordPress Virtual Robots.txt that keeps overriding my root robots.txt? [closed]
- Remove canonical link element from noindex pages
- What could be causing the category to be appearing as the post title in the title tag?
- Changing Post Sitemap Frequency to Hourly [closed]
- Turn off auto 301 on archive pages? [closed]
- Yoast: do I still need to manually insert meta tags in my theme or will Yoast do this for me? [closed]
- Hard-code SEO Title defaults across all sites on a multisite
- SEO Yoast Menu Not working
- Wrong Open Graph image is shown (og:image) using yoast
- An inactive plugin causes an HTTP 404 issue on a translated post – WPML
- Set default image for twitter cards with Yoast?
- Overwriting yoast’s og:meta output?
- Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
- yoast seo plugin – remove bulk title and description editor menu from non-admins [closed]
- Yoast SEO makes repeated INSERT queries loading any page
- yoast sitemap xml
- Yoasts plugin sitemap not detecting correct category URL format
- Change Paginated Blog Canonicals
- Preview Problem Yoast SEO
- Remove all author names from yoast meta
- My wordpress website showing 2 titles in source code how can i fix this issue
- Separate Sitemaps for Each Language with Polylang and Yoast SEO
- Is the WordPress REST API installed and enabled in a vanilla WordPress 4.7 installation?
- WordPress 4.7.1 REST API still exposing users
- How do you retrieve a post by slug name through REST API?
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- Does something like is_rest() exist
- Hiding WordPress REST API v2 endpoints from public viewing
- How to: Make JWT-authenticated requests to the WordPress API
- How to use OAuth authentication with REST API via CURL commands?
- WordPress Rest API custom endpoint optional param
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- Using php to overwrite or replace title tag, while using yoast [closed]
- Using the Rewrite API to Construct a RESTful URL
- WP Rest API: details of latest post including featured media url in one request?
- WP REST API: filter by category 1 AND category 2
- How to do a meta query using REST-API in WordPress 4.7+?
- REST API purpose?
- SSO / authentication integration with external ‘directory service’
- Get post count in wp rest API v2 and get all categories
- Filtering multiple custom fields with WP REST API 2
- WP REST API — How to change HTTP Response status code?
- wp_get_current_user() function not working in Rest API callback function
- How to use WP-REST API to login user and get user data for Android app?
- Nonce retrieved from the REST API is invalid and different from nonce generated in wp_localize_script
- How to get custom post meta using REST API
- Add media with WP-Rest-API v2
- Can I use REST-API on plain permalink format?
- How to remove rest api link: in http headers?
- Building a custom REST API
- WP REST API Is it rather easy to rename the default wp-json uri part?
- Query WP REST API v2 by multiple meta keys
- run silex or slim with wordpress
- Search WP API using the post title
- WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins