adcorbett
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WWW vs. Non WWWHere is something for you. The re-write code in the htaccess file works great…in every browser except Chrome. Why would that be?
Forum: Fixing WordPress
In reply to: WWW vs. Non WWWHi Again
So I am almost there. I find that I can remedy my issue with the following code in my .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.ilgenetics.COM$ [NC]
RewriteRule ^(.*)$ http://www.ilgenetics.COM/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressThe problem then lies in the fact that with that code, when I try to access my staging area (staging.ilgenetics.com), it gets redirected to http://www.ilgenetics.com as well. I assume because the above code pushes all traffic bound for a site ending in “ilgenetics.com” to http://www.ilgenetics.com – is there a way to exclude staging.ilgenetics.com from that rule?
Thanks!
Forum: Fixing WordPress
In reply to: WWW vs. Non WWWThanks leejosepho! I will give this a shot!
Forum: Fixing WordPress
In reply to: WWW vs. Non WWWSykat – I do not know how it was installed as I am new to this company and inherited it from the last admin. Is there a way via the dashboard to find out how it was installed?
Leejosepho – thanks for that! I tried the following code in my .htaccess and for some reason it blocked access to my dashboard until I went into the AWS server this sits on and copied the old .htaccess without the following code back. Here is the code I used in my .htaccess. Can you see anything wrong with this?
RewriteEngine on
RewriteCond %{HTTP_HOST} !^ilgenetics.com$
RewriteRule ^(.*)$ http://www.ilgenetics.com/$1 [R=301]