问题原文
原帖链接 · Raucko · CC BY-SA 4.0
As an example, the URL https://nationalmtb.org/nica-handbook always links to the most updated version of the organization's handbook (currently a file named NICA-Handbook.12.1.23.v2.pdf).
How do I do the same, having a URL like example.com/myorg-handbook link to whatever the current version is? I am using Wix for our website.
已采纳解答
原帖链接 · Zhaph - Ben Duguid · CC BY-SA 4.0
You should be able to use Wix's Redirect Manager in their SEO Tools to create a manual redirect.
This would allow you to update the redirect when you upload new versions of the file.
There are a couple of caveats though:
- You have to have a custom domain configured
- They are always created as 301 permanent redirects, which means you might not see updates if you use the original redirect, change the location and then test again as your browser can cache the original redirect.
To create a 301 redirect:
- Go to your SEO Dashboard.
- Select Go to URL Redirect Manager under Tools and settings.
- Click + New Redirect.
- Select Single redirect.
- Enter the path you want to redirect from (e.g.
/myorg-handbook) under Old URL. - Enter the new URL that you want to redirect to:
- You will probably need to enter the full URL to the PDF on your site, as they probably don't have slugs for the finder to use.
- Click Save, or click Save & Add Another to add more.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
