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
- How to get the custom header image’s alt text?
- PHP unit testing WordPress?
- Create WordPress pages with PHP
- How to return the_excerpt (without echo)?
- Replacing mysql_real_escape_string in WordPress theme
- TCPDF get_post_meta outside the loop
- ACF check if variable has http, if else return string
- Adding a div at the bottom of a sidebar
- PHP Fatal error: Out of memory in WordPress [closed]
- Help solving t_echo php error while using echo do_shortcode
- How to modify the default feed via a function
- Custom Post type slider with thumbnail navigation
- How to add new CSS file to new PHP file
- WordPress SQL JOIN query
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- Why does PHP called with Jquery AJAX not allow additional php code to be added?
- Infinite Loop in WordPress Installation
- send popup after wp_redirect()
- Generating 10 000 WordPress posts using PHP and avoiding Server Timeout error
- Using the get_template_part method within an mu-plugin not possible?
- Woocommerce Product page add on checkbox and price
- Where Do Image Dimensions Get Added To A Filename?
- Add my footer menu to the header
- Child and Parent Pages list of sub pages
- How to use get_template_part always relatively to the file I’m using it in?
- Permission error on plugin save
- Adding Gravity Form With if(is_page) Is Not Working
- Implement “No related posts for this entry” into the loop?
- I would like to alert message while another user is editing or update data in wordpress admin panel, what should i do?
- Hide category by tag