Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tandelk

    (@tandelk)

    So as per what you have told me about

    The custom code you’re adding needs to be in its own code block to avoid overwrites.

    I am currently making them changes outside default WordPress Section something like

    #BEGIN HTTPS Redirect
    <IfModule mod_rewrite.c>
    Options -Indexes
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mywebsitehere\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.mywebsitehere/$1 [R=301,L]
    </IfModule>
    # END HTTPS Redirect

    Using above as a seperate section after #END WordPress area. If it is correct just let me know .

    Thread Starter tandelk

    (@tandelk)

    Currently i did was i added the Retwrite Condition in default WordPress section
    @wfgerald

    # 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]
    Options -Indexes
    
    RewriteCond %{HTTP_HOST} ^mywebsitehere\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.mywebsitehere/$1 [R=301,L]
    
    </IfModule>
    # END WordPress
    # Block WordPress xmlrpc.php requests
    <Files xmlrpc.php>
    order deny,allow
    deny from all
    </Files>
    • This reply was modified 6 years, 7 months ago by tandelk.
Viewing 2 replies - 1 through 2 (of 2 total)