• I’m having 4 main pages in my site:
    1. mysite.net (wordpress)
    2. mysite.net/folder/index.php (HTML website index page and changed into PHP by adding the code
    <?php /* Template Name: Home Page*/?>
    3. mysite.net/wordpress_post (normal post)
    4. blog.mysite.net (my blog) WordPress

    I made a redirect from the cpanel from mysite.net into mysite.net/folder/index.php and everything works fine except the posts like
    mysite.net/wordpress_post (all wordpress posts now are not showing and they are redirected to the mysite.net

    I made the necessary changes in the Settings/READING

    Anyone can help so that my posts under the mysite.net are shown properly and not redirected ? I read that I can redirect one page only like the Home Page in the .htaccess file.
    Example: redirect mysite.net/home-page to the HTML version mysite.net/folder/index.php

Viewing 1 replies (of 1 total)
  • Thread Starter wadboram

    (@wadboram)

    This is my .htaccess file:

    RewriteOptions inherit

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    RewriteCond %{HTTP_HOST} ^mysite\.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mysite\.net$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^/?$ “http\:\/\/mysite\.net\/folder\/index\.php” [R=301,L]

Viewing 1 replies (of 1 total)

The topic ‘Static HTML Front page (redirection error)’ is closed to new replies.