Remove Version Suffix In Attachment URL - Xenforo 2

Remove Version Suffix In Attachment URL - Xenforo 2

  • Thread starter Thread starter xenvn
  • Start date Start date
Remove-Version-Suffix-In-Attachment-URL.webp


This feature will automatically remove the version suffix in the attachment url. Make the url neater and better seo.

By default, for example, if you have a file named "file 1.0.0.zip". When you upload to xenforo, the url will be:

domain.com/attachments/file-1-0-0-zip.1
-> "zip" is the format of the file that xenforo attaches.
-> the number "1" at the end is the attachment_id that xenforo attaches.

When you enable the "Remove Version Suffix In Attachment URL" feature, the url will be:
domain.com/attachments/file-zip.1
-> The url will be neater.

Benefits: When you update the file using XenVn's "Update Attachments" feature. For example: Update to new version, new file name is: "file 2.0.0.zip", then the xenforo URL will automatically change to:
domain.com/attachments/file-2-0-0-zip.1

If you have enabled "Remove Version Suffix In Attachment URL", the url will still be:
domain.com/attachments/file-zip.1

It will avoid the notification of creating a 301 redirect link from domain.com/attachments/file-1-0-0-zip.1 to domain.com/attachments/file-2-0-0-zip.1

Enable this feature at:
XenVn Setting -> Attachments -> Remove Version Suffix In Attachment URL (XenVn version 2.4.6+)

Supported version suffix structures:
1.0
1.2.3
1.0.0a
1.0.0 beta
1.0.0.1...
v100
 
Last edited:
Back
Top Bottom