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

How are XenForo URLs Generated?

Discussion in 'General XenForo Discussion and Feedback' started by TheBigK, Oct 24, 2012.

  1. TheBigK

    TheBigK Well-Known Member

    So my server administrator found out that few of the Valid URLs on our site are generating 404s. These URLs are generated by XF installed on our site. The server admin has asked following questions to me -

    "How the URLs are being generated. What script generates them? What creates the URLs in question? By what process?"

    What should I reply to them?
  2. Arty

    Arty Well-Known Member

    That depends on URL. Most are generated by XenForo_Link::buildPublicLink(), located in library/XenForo/Link.php
    Jake Bunce likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    Which valid URLs are on your site that are generating 404s?

    Also, why does he need to know the answer to that question?

    Whatever you do, do not allow any one to suggest making changes to the XenForo core files. If there's a problem, it should be reported for troubleshooting (which can begin with my opening question) or ultimately a bug report can be filed.
  4. Jeremy P

    Jeremy P Well-Known Member

    He's a server administrator, so he probably knows his stuff and is trustworthy. I'd imagine he wants to know the answer that so he can continue trying to debug it.. nothing to make a big deal of.

    I will agree though that if this is a problem occurring under XF, the community here is probably more knowledgeable and will be able to track down the issue quicker. And if it's not from custom code, a bug report definitely should be filed.
  5. Chris D

    Chris D XenForo Developer Staff Member

    No, I guess it's no big deal. But we're assuming he knows his stuff which isn't always the case. He certainly may not understand how things work from a XenForo point of view.

    Would be good to know what the URLs are. We might be able to shed some light.
    Jeremy P likes this.
  6. TheBigK

    TheBigK Well-Known Member

    Ok, I guess I figured out the issue on my own. I had redirected our vB+vBSEO installation from /forum/ to Xenforo (/community/) in December last year. Now the specific threads that show 'file not found' in server logs were linking to the attachments which still resided in the /forum/ folder of our server. So basically, the posts have hardcoded URLs that point to the files that do not exist on the server.

    I think I'll just leave the things as it is. These aren't the 404 as I had imagined; because Fetching these URLs as Google Bot shows 200 OK message.

Share This Page