^\/wp-content\/documents\/(.*?)\\.pdf$<\/pre>\nDestination<\/p>\n
https:\/\/www.domain.com\/document\/$1<\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
Since WP Engine deprecated .htaccess support we need to use different methods to redirect old URLs. They offer a good redirect rule system. Here’s an solution to redirect the following structure www.domain.com\/wp-content\/documents\/document-name.pdf to this new structure www.domain.com\/document\/document-name Source ^\/wp-content\/documents\/(.*?)\\.pdf$ Destination https:\/\/www.domain.com\/document\/$1 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"yoast_head":"\n
WP Engine Redirect Rules - Darren Lambert<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n