Mobile app version of vmapp.org
Login or Join
Michele947

: Overwriting a File To Avoid Link Updating 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

@Michele947

Posted in: #Links #Pdf

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.

Thanks

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

2 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

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.

10% popularity Vote Up Vote Down


 

@Angela700

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 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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme