Forums

How to write .htaccess code for subdomain? (1 post)

  1. uphichet
    Member
    Posted 4 months ago #

    Dear friends,
    I just installed a new wordpress using subdomain.
    The problem occurred while setting "Permalink Settings"
    I chose Custom Structure and set it as /%postname%/
    Also never forgot to write the .htaccess file as the detail below.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    The problem is it could not be done with subdomain, the main page was OK but other page I got Error 404.

    Can someone please help me "How to write the .htaccess file for the subdomain?"

    I am really appreciated with your kind support.
    Regards,
    UPhichet

Reply

You must log in to post.

About this Topic