#StackBounty: #htaccess Cannot mask WordPress page URL using .htaccess

Bounty: 50

.htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp_test/
RewriteRule ^index.php$ - [L]

RewriteRule ^the_image$ wp-content/uploads/2019/01/banner.jpg [L]
RewriteRule ^the_page$ sample-page [L]
</IfModule>

When I go to example.com/the_image it shows the correct image. However, if I go to example.com/the_page it shows the page not found page.

Any work around on this?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.