Mobile app version of vmapp.org
Login or Join
Gonzalez347

: Redirect Old PDF file to a new PDF file 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

@Gonzalez347

Posted in: #Pdf #Redirects #SearchEngines #Seo

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.
www.henderson.cc/wp/tag/301-redirect/
How do I make the switch to the new files?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

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]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme