I have a website the populates fine without www but is not shoing up in MS Edge with www in from of the domain.
I need some help with the correct php code for to handle going from www to non www.
Also, my site has an htaccess file so I need to rewrite the file without breaking my site. I don't know what the current file is doing.
Current HTAccess is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /[login to view URL] [L]
</IfModule>
Found blog suggesting something like...
RewriteEngine On
RewriteCond %{HTTPS_HOST} ^[login to view URL] [NC]
RewriteRule ^(.*)$ [login to view URL]$1 [L,R=301]
I'm looking for the correct text to copy then paste into my htacess file and have it work.
I think this is a super simple project for someone that knows what they are doing. Once you provide the new file, I will copy and paste it into my site and ensure is works.