1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 How hard would it be to change the name of the attachments folder?

Discussion in 'XenForo Questions and Support' started by Joeychgo, Apr 24, 2016.

  1. Joeychgo

    Joeychgo Well-Known Member

    How hard would it be to change the name of the attachments folder? (and have attachments still work of course)
     
  2. Martok

    Martok Well-Known Member

    Why do you want to change it?
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    This is an important question.

    Though it's likely not possible. You can change the data or internal_data path but not the name of the folders within.
     
  4. Danielx64

    Danielx64 Member

    One valid case could be that he want to move the attachments to a different drive on the server.
     
  5. thedude

    thedude Well-Known Member

    That would be doable with what Chris suggested, without needing to change the attachments folder name itself:
     
  6. Joeychgo

    Joeychgo Well-Known Member

    There are a few reasons, SEO being one of them.
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    That's pretty much a n0n-reason, as I'm fairly certain the name of a directory on your server has zero impact on SEO.

    Can you just clarify, though, which URLs you wish to be impacted by this change of name? There may be something that can be done, but I just want to be sure we're talking about the same thing first.
     
  8. Joeychgo

    Joeychgo Well-Known Member

    For Example:
    http://www.forbbodiesonly.com/moparforum/attachments/image-jpeg.333055/

    to

    http://www.forbbodiesonly.com/moparforum/carphotos/image-jpeg.333055/

    and yes, the name of the directory can help with SEO - as far as the addition of keywords.
     
  9. Slavik

    Slavik XenForo Moderator Staff Member

    I recall a webinar from a guy who tested this theory with a wordpress blog and picture content.

    The results pretty much concluded it had zero measurable impact and the 2 key elements that had any effect were the file name and the alt tags.
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    That may well be true of days gone by. It's surprising the amount of old advice that sticks around as gospel. To be fair, if there is any benefit it will be negligible.

    That said, it certainly doesn't hurt.

    Actually this can be done pretty easily. The URLs you posted aren't folder names, they are programmatic routes within the XF software. You can therefore change them using Route Filters.

    Admin CP > Route Filters > Create Route Filter:

    Find Route: attachments
    Replace with: carphotos

    Save

    That should do it
     
    ozzy47 and Luis like this.
  11. Joeychgo

    Joeychgo Well-Known Member

    Thanks Chris
     

Share This Page