Scott Walker
asked on
How can I force a wordpress site to not use SSL?
Hey all, I have a wordpress site whose functionality breaks when using https. Is there any way to force http instead of https? Our main purpose is so that search engines and our AdWords ads redirect to the functional site.
Also, our current htaccess file currently has 177 lines, and I was wondering if it could be optimized in any way? You can find it here.
Thanks!
Also, our current htaccess file currently has 177 lines, and I was wondering if it could be optimized in any way? You can find it here.
Thanks!
And the MIME types are probably unnecessary because most servers already support those. I would remove that section and see if there are any problems. Make a backup first.
For what it's worth, this is the entire .htaccess file for one of my busier sites. It does not have Wordpress on it.
For what it's worth, this is the entire .htaccess file for one of my busier sites. It does not have Wordpress on it.
ErrorDocument 404 /404error.htm
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
Use this code in your .htaccess file:
Change domain.com to your domain name.
Hope it will help you.
Thanks
Edwin
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
Change domain.com to your domain name.
Hope it will help you.
Thanks
Edwin
ASKER
So I used the following:
RewriteCond %{HTTP_HOST} !^www\.realestateschoolchi cago\.com$
RewriteRule ^(.*)$ http://realestateschoolchicago.com/ [R=301,L]
It seems to work in Chrome, but in IE, I get a "Page cannot be displayed" - for my test, I'm going to Google and searching for "chicago real estate school", then clicking on the link, which is an HTTPS link. Any idea why this wouldn't work in IE? Thanks!
RewriteCond %{HTTP_HOST} !^www\.realestateschoolchi
RewriteRule ^(.*)$ http://realestateschoolchicago.com/ [R=301,L]
It seems to work in Chrome, but in IE, I get a "Page cannot be displayed" - for my test, I'm going to Google and searching for "chicago real estate school", then clicking on the link, which is an HTTPS link. Any idea why this wouldn't work in IE? Thanks!
clear your catch and try again.
ASKER
Actually, I just realized that I need to do the opposite of what I've been doing - Google has indexed ALL of the pages of our site as HTTPS, so we need to switch all pages to HTTP, *EXCEPT* for those in our shopping cart subdirectory (/xcart). I believe that there's an .htaccess file specific to our shopping cart, but wouldn't it get overruled by the site-wide .htaccess? Thanks again for ANY help y'all can provide!
ASKER
Edwin - I actually had our hosting company test it on a fresh machine, and they verified that it's an issue for them as well. I was asking them whether there's something unique to their environment, and they assured me t at there isn't. Thanks!
When Google will re-crawl your website, the URL will automatically get changed, you should not worry about this.
ASKER
Edwin - we currently receive a redirect loop in all browsers when implementing this code. Any ideas?
Try to clear the cache or use incognito browser.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window