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
- Change WordPress Multisite Domain to subfolder
- How to do SEO friendly filters urls?
- Adding wrapper elements in the_date() like in the_title()?
- Get post id within comments loop
- Moving code from theme header to functions.php
- Change CSS based on is_user_logged_in
- Woocommerce change prices for a certain country [closed]
- What does this mean in wordpress? Easy question
- Adding PHP in the menu
- Adding `post_author` in php
- How to keep empty fields from appearing in php?
- Advanced Custom Fields not displaying
- Two menus show up
- How to get private property in parent class into extended class?
- Is this spyware on my site or a real Java update?
- meaning of (array)function()
- Multiple do_shortcode in page template
- How to get all author posts outside of author templates
- How to obtain the current website URL in my theme?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- How to determine if the sidebar is empty? Or not active?
- What exactly do this function declared into functions.php file of a WP theme?
- retrieve post data and insert it in seperate static html page without WordPress
- PHP conditional script issue
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- WP_Query fails despite having 1 post
- Ajax contact form return 0
- How can I call specific function if requested URL is not found?