Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter fatim.a

    (@fatima-1)

    Hi there, thank you for replying. I added the snippet of code to the top of my .htaccess but it didn’t work.

    This is what it currently looks like

    Header add Access-Control-Allow-Origin "*"
    
    RewriteEngine On
    
    # REDIRECT HTTP to HTTPS
    
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    # REDIRECT WWW to nonWWW
    
    RewriteCond %{HTTP_HOST} ^www\.tilgoldenbrown\.com [NC]
    RewriteRule ^(.*)$ https://tilgoldenbrown.com/$1 [L,R=301]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteRule ^index\.php$ - [L] 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Is there something wrong with my code?

Viewing 1 replies (of 1 total)