redirect wp page to html page
-
I have a CMS wordpress website and a separate wp blog website.
I would like to create a wordpress page called blog which immediately re-directs to the real blog on another website. I am trying to use .htaccess to do this.
My permalinks are postname only (/%postname%/).
my .htaccess, after setting up the permalinks, contains:# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]
</IfModule># END WordPress
I thought that by adding after the End statement:
Redirect 301 /blog/ https://www.wholelifegardening.com/blog/index.php
it might work, but it isn’t, it just displays the “dummy” wp page which should be redirected. I’m not sure the correct way to refer to the wp pages. I haven’t found quite this issue on other forum topics.
my wordpress files are in mysite.com/wp.
Any suggestions?
The reason I’m doing this is so that I can intermingle pages created in wordpress with links to other pages (html), and have them all on the same list, in the order I want them, not as separate lists for links and pages. If there is a better way to do it than creating a dummy page and redirecting it to the html page, I’m open to suggestions. This is my first wp site.
Thanks.
- The topic ‘redirect wp page to html page’ is closed to new replies.