CRM: WordPress

I'm updating a pdf file on our website, and would like to know if overwriting the old content with the new content would prevent the need to re-establish the links on the site that point to that specific file.

In other words, does overwriting the file remove the need to re-direct old links?

I feel like I'm being unclear, so I'm happy to chat and make it more straightforward.



Without putting wordpress or any of those CMS's into the picture, the answer is clear.

If you upload a file to a server that is the exact same filename referenced by a link from any page on the web, then there is no need to update any of the links.

As much as I'm taking shortcuts here, this answer is easy to verify.

Simply create a simple HTML file with the following contents:

<a href="something.html">A link</a>

Save it as index.html or index.htm (depending on the first file your specific server looks for when a user requests the home page) then upload it to your document root folder on the server. To be on the safer side, upload the file as index.htm and make a copy of it and save it as index.html as well.

Next, create a simple HTML file with whatever contents you want and save it as something.html and upload that file to the exact same folder where you saved the index.htm or index.html file.

Access your domain (by going to www.whatever-your-domain-is.com in your browser) and you will see the following on a blank screen:

 A link

Click on it and you'll see the output of "something.html" after the browser processes the HTML.

Now on your local computer, change the contents of something.html and save it again, and upload it again to the same location, and if asked to overwrite the existing file in your editor, choose yes. If asked to overwrite the file on the server, choose yes. Now go in your browser, and clear the cache and then access your domain again. You should notice that when "A link" is clicked, you'll see your changes.

As you have noticed, no changes were made to index.htm or index.html.

| improve this answer | |
  • Thanks, looking forward to saving a lot of time this way! – James Randolph May 1 '17 at 21:28

Short answer is YES. (and you should)

If you are using WordPress try removing the file and upload the new one with the same name via the WordPress admin panel.

However, I would suggest via FTP to replace or overwrite the file.

| improve this answer | |
  • The question was whether overwriting the file removed the need to update the links. Saying "no" is wrong. However using FTP is a good idea – Steve May 1 '17 at 23:55
  • @Steve you are right!, I meant Yes...I will edit it – Raul Reyes May 2 '17 at 0:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.