You can do this quickly by creating a rule in .htaccess.
Log in to WordPress and go to the page you want to link to.
Then click “preview changes”.
Look for the preview_id parameter in the url.
And use this id after de index.php?p= in the .htaccess like:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^mypage/page.html$ index.php?p=262 [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Related Posts:
- How to create custom 401, 403 and 500 error pages?
- Experiences with compiling WordPress using Hip Hop?
- PHP – redirect https to http and www to non-www
- Facebook Comment Count
- Bypass .htaccess when using download_url
- How can I run a .php file located in my site’s root folder?
- Fix 403 error on WordPress multisite network using subdomains
- How to redirect all 404 in a WordPress subdirectory to the index.php of subdirectory?
- How to run multiple websites from single WordPress setup
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- How to override .htaccess with new rules without ftp or edit it manual
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- Should I store my Facebook access tokens?
- Change the actual (or viewable) WordPress directory structure
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Cannot get media type from ‘x-mapp-php5’
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- How to change home or site url using action hooks or filter?
- Apache Fallback instead of add_rewrite_rule
- 3 blogs same installation, without WP MU
- Two Different Links for Same Product – WooCommerce [closed]
- Was told to change the .htacess file form .html to .php so this would work properly
- How to change redirection route to a php page for making it only accessible by logged-in members?
- how to combine wordpress htaccess on my root domain + php on subfolder
- subdirectory index.php is not working
- custom url rewrite for wordpress
- wp_head function not outputting
- Loading index.php contents which located outside blog folder for post single page
- WP & Server Speed [Teacher Question]
- WordPress add_rewrite_rules for custom URLs ending in .html
- Function returns post URLs rather than retrieving Facebook Graph API data
- Troll the hackers by redirecting them
- Liking a facebook page from wordpress website?
- Seo Friendly Filter URLs
- How to allow download url redirection only if user logged in WordPress site?
- How to disable all logins except Network login in WordPress Multi site?
- Removing files programmatically
- Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?
- Simple seo-friendly custom $_GET url rewrite with htaccess
- OG:Audio facebook meta tags
- Strip hashtag off permalink with php
- How to make Subdomain work for product_tag?
- How to serve WordPress folder over subdomain?
- Pages from admin dasboard missing after site migration
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- Show Gutenberg facebook embed with a custom theme
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- How to change query string with pretty URL in WordPress using .htaccess file
- Upload images from one server to an other in wordpress
- Problem with ajax request and directory structure after site migration
- Resource 404 error on multisite subdirectory install
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Facebook like update status for wordpress
- Getting most popular posts based on Facebook comments count
- Redirect homepage /page/1/ to /blog/page/1/
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- How can i call the facebook #hashtag images on my site
- Why I can download any file except PHP files from a URL but I can download any from another site?
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- Facebook php sdk 4 getSessionFromRedirect() always null
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- How to use multiple 404 Error Pages in WordPress
- How to add Paragraph Tags in WordPress using Visual Composer?
- Increase Upload Size with htaccess | MAMP
- wp-login – unable to redirect user to a custom login url
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Custom plugin: Trying to show saved data on frontend
- How to call a function only once (global variable scope)
- Where should I install a PHP library into WordPress so that code in a webpage can activate it?
- Does the debug.log do log rotation?
- ob_get_clean returns empty string, ob_get_flush outputs string
- Edit postmeta when user changes user role?
- Pagenavi pagination via wp-query in functions.php showing same content for each page
- Looping through WP_Post Object
- Translating add to cart woocommerce button [closed]
- nowplaying.include.php Will Not Display Results
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- SetCookie simply not working
- Looking for most performant way to execute several similar WP queries within shortcodes
- Customize Time Stamp
- Combine two filters into a single call
- The text box have space character
- How to output widget
- get_avatar won’t show uploaded avatar, only default gravatar
- How can I fix WordPress installation errors?
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- Display menu point only if there are published posts in that category
- What query string parameter is available for index.php, that works for both pages and blog articles?
- Sending data from custom inputs in WordPress comment form in the admin notification email
- export a csv file from the database with a cronjob
- How to set a min number of words for a blog post
- How to show all pages in blog navigation?
- Access Child Class of Plugin Main Class Instance
- Modify custom field input data before creating a new post