Redirect Old PDF file to a new PDF file

Redirect Old PDF file to a new PDF file - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Redirect Old PDF file to a new PDF file error on your web browser. Problem :


I have 6 PDF files that have been updated and will use a different file name. All files are in one folder. Old PDFs have been indexed in the search engines.



I saw one solution but I think it only works if you have one PDF per folder which is not the case here.



http://www.henderson.cc/wp/tag/301-redirect/



How do I make the switch to the new files?


Solution :

Check if the old file is called, then change it to the new file



RewriteCond %REQUEST_URI ^old-file.pdf$
RewriteRule ^(.*) /new-file.pdf [L,R=301]

We hope that this article has helped you resolve the seo, redirects, search-engines error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=