First, create a page with the intended URL slug and note down the ID of it. Then in your functions.php
function wpse410694_custom_redirect() {
//Let us assume the ID of the page is 123
if ( is_page(123) ) {
wp_redirect( 'drive.google.com/myCustomPDF_Link' );
exit;
}
}
add_action( 'template_redirect', 'wpse410694_custom_redirect');
The maximum upload size is normally set from server. You can increase it by tweaking the server settings.
Related Posts:
- How to force a 404 on WordPress
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Disable WordPress URL auto complete
- WordPress redirecting connections on port 8080 to 80
- Disable ONLY URL auto complete, not the whole canonical URL system
- 301 redirect instead of 404 when URL is a prefix of a post or page name?
- Redirect to referring page after logging in
- Correct way to hide pseudo pages from being shown?
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirect to post after submission with Gravity Forms? [closed]
- Redirect www to non-www htaccess
- Stop WordPress Redirection From /keyword to /some-post-containing-keyword/
- Specific URL has 403 Forbidden status code
- I want to redirect the url to the previous page
- Headers already sent – WordPress core
- Import WordPress Post Slug with Forward Slash
- Create a php callback/endpoint for an OAuth script
- Query WP data with the WPDB API from outside WordPress
- How to redirect user to a page after form submission
- Too many redirects when using wp super cache [closed]
- How does WordPress redirect without using .htaccess?
- How to redirect from various ?page_id= to home page?
- header and wp_redirect not working. cannot modify header information warning
- Code to create a redirection after login?
- Headless WordPress redirect front-page to login page [closed]
- 301 Redirect To Post ID
- Redirect after password update
- How to add new redirection on wordpress site
- How to use Regex to add to a url?
- htaccess redirect invoice.php to /client/invoice.php
- redirecting and showing notice from previous action
- redirect wp-admin/install.php
- Make posts 410 dynamically
- Redirect homepage with htaccess, except if I enter the link adding “/home”
- How to properly encode url with parameters for redirect_to
- How to disable redirect on pagination first page
- Redirect user to a form until they have filled it out [closed]
- Always redirect current user to certain page
- How to redirect to clean links with this code
- How can I make my WordPress site redirect to subdomain once successfully login they will redirect back to root domain
- Redirections and rewrites to subdomain
- Redirect user to previous page after signup from custom form
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- 301 Redirect all page and post urls from .html to /
- Get query parameters from external url and make a redirection
- Why does specifying ‘about-us’ as a link target take longer than specifying ‘about-us/’?
- Internal Links that Automatically Update
- wordpress_redirect returns different headers for HEAD and GET requests
- Usage of the login_redirect filter
- Show different page for first time user
- Redirecting to new URL structure and 301
- Blog has an infinite redirect loop
- WP forwarding to wrong site address
- wp_login_form redirect problem
- How can I redirect users on the new 404 page without plugin?
- How do I write a subdomain redirect?
- How does WordPress format the url on a 301 when a trailing slash is missing?
- Redirection on domain name
- Redirect only Blog posts to new
- htaccess redirect from specific urls of my site to the homepage
- Can’t make redirect in WordPress
- HTTPS to HTTP rewrite rules not working as expected
- Changing permalinks and redirecting urls
- htaccess 301 Redirect not working from aspx to new WP permalink
- Mass .htaccess URL Forwarding
- How to point a public URL to internal (hidden) server with all links following.
- Redirecting simple big problem
- Wp Remote get with manual redirect
- Redirect posts to new domain
- Add base folder to CPT and 301
- How do I redirect the browser to 404 page, if no posts are found in home page
- Redirect after the registration
- how to redirect non logged users to login page and redirect to another page with saved data?
- How to redirect if 404 error in wordpress then redirect 404.php url
- How to automatically redirect category pages (301) when changing the location of a category in the hierarchy
- 301 Redirects from old WordPress domain
- Unexpected: WordPress redirects to the WP_HOME/WP_SITEURL value
- How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress
- How to make front page temporarily show content of internal page
- How to get user details by name
- redirect after account activation for forum using bbpress and buddypress
- redirect_to ignoring the SSL
- Resolving the too many redirects on wordpress
- One set of Child Pages redirecting to Home page?
- Redirect old .html URLs to a new installation in a subfolder
- Serve wordpress regardless of the cname
- Pass original URL through after login redirect
- redirects for removed/deleted woocommerce products
- Headers already sent error after upgrading wordpress to 4.2.2
- How to block direct access to files upload in edd folder
- Blog post URL redirects to a Page URL who’s slug is a prefix of the post slug.
- Blog posts redirecting to random 404 pages
- Subpages return 404 server error
- WordPress 302 Redirect to Holding Page
- Converted posts to a CPT, 301 redirects necessary?
- website is sending people to wrong address
- Why my htacess rewrite return 404?
- woocommerce shop page Redirect Help
- problem redirecting users to page on login
- Create a 301 Redirect automatically when adding %category% in the permalink