Set the query string to p={post_id}
. WordPress will redirect it to the proper URI then automatically.
Related Posts:
- Change gravity forms confirmation redirect query string to include entry id [closed]
- Prevent redirect to page/page when reserved term ‘name’ in $_POST when value is a page/post title
- Wp Login redirect strips parameters from url
- Adding query string parameters to URL with same name as custom post type gives 404 error
- Site using static homepage, redirects (301) and removes pluses from query string
- PHP header(Location: …): Force URL change in address bar
- php refresh current page?
- Host the wp-admin on another domain?
- WordPress localhost site redirect to live site
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- Login redirect to previous page
- WordPress install enters an infinite loop
- WordPress HTTPS redirect loop
- 301 redirect not working through .htaccess
- Using `auth_redirect` : keeps asking me to login even when I’m logged in
- Facebook like button that redirects?
- Redirect from https to http or from http to https? [closed]
- URL Redirect and Bulk Actions in wp_list_table
- Redirect too many times htacces switching to https
- Disabling the X-Redirect-By response header
- How to hide that a certain non-WordPress directory exists on the server?
- Disabling HTTPS redirection for migration
- Redirect deleted posts to category archive
- Can WordPress pass through a call to an external API and return the result directly to the client?
- Redirecting old post url to 404 in wordpress using htaccess
- How to redirect subcategories to a page?
- Migrating from http to https
- How to redirect to home page after registration?
- CNAME vs A Record for WWW – with 301 Redirects
- Any action in wordpress redirects me to home page
- Handle regular expression based redirects without .htaccess
- Login redirect problem
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- how to setup .htaccess: redirect/ /%postname% to /%category%/%postname%
- How to redirect to specific url if contains specific text in url?
- Redirecting old permalink structure to new in htaccess
- WordPress redirect, output headers already sent
- Why is there a status message “302 Found” on top of the site?
- !is_admin() condition turns true in admin pages
- How to forward all requests starting with a specific folder name to the same folder
- WordPress index.php seems to perform unwanted redirect 301
- Issue redirecting ‘blog’ to ‘news’ in WordPress using .htaccess
- Custom Login Form – Redirect user to login page if not logged in
- Use two different index pages
- How to redirect from one WP site to another
- Extra Text in URL
- wp_redirect and current_user_can issues
- Redirect /home to home.php
- WP_List_table with form of method=GET redirects to wrong url after submit
- WordPress localhost site always redirect to live site [closed]
- My Cloned WP site keeps redirecting to the old one
- Can’t do 301 Redirect, Why?
- Redirect old query string URLs to new add_rewrite_rule URL
- How can I set up a splash page that is redirected to only one time for the visitor? [closed]
- Is there way to redirect all blog post pages to Home page?
- Temporary Infinite Redirect Loop
- A question about .htaccess
- Add new post redirection [closed]
- Blog keeps redirecting to the contact page
- WordPress Pagination – 301 Redirect Issue
- Why do my new WordPress pages redirect to home / staging site?
- WordPress multi domain: page redirect to main domain whenever WordPress do the URL guessing issue
- Puzzled at HTTP/2 301 response header
- Applying ‘middleware’ to a url before redirecting? Does WP have built in mechanism for this?
- How to regenerate RSS feed URL like FeedBurner?
- How to avoid redirect 302 in wordpress to the author pages?
- ErrorDocument 410 gives me back a 302 header
- WordPress Staging site is redirecting to live and lost the child theme
- Mailjet Email Subscription + Redirect w/ Custom Template Fails
- domain redirects to subdomain
- htaccess Redirect 301 doesn’t work. How to debug?
- Having a different landing page for returning users
- How to create multiple Rewrite-Rule for various site in single htaccess?
- how can i find malware code and remove from wordpress site to stop it redirecting to hackers click view pages
- Redirect after plugin activation
- Get value of pre-populated Gravity forms field as variable in my function
- change home_url and site_url but don’t redirect to home_url and site_url on load
- How do I skip wordpress’s 404 handling?
- All devices on my network redirect me to an old domain
- how to write 301 redirect code for woocommerce product
- WordPress multisite and redirect to subpage
- Redirect users in first login to a dynamic link
- My WordPress site redirects to port 8082
- wp-login.php redirect problem
- How to redirect 404s that generated for css&JS files?
- Custom, conditional redirect on logout
- International characters in slugs to redirect to
- How to Block WordPress from subdomain?
- WordPress redirect to splash page once a day for the first week
- after logout, get_current_user_id still holds value
- Solution for WordPress URL structure changes and 301 redirects?
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- How can I redirect foreigners by IP to other URL in WordPress?
- How to change Ugly link?
- How to use the HTTP API (wp_remote_get) instead of cURL?
- Forcing header cache control in 404 pages
- Regex for pdf’s – Old .asp Site folder structure to new WordPress Media Folder(s)
- Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]
- WordPress not use site url when redirect 301
- Redirect certain 404 pages to parent page