I have purchased SSL certs and done all the necessary work to get the cert files onto my server and into my apache config files for my virtualhost.
In WP in the backend I have made sure my urls all use https: in them and forced the wp backend to always use https. This all works fine but issues start happening on some pages where it says that it cannot be found giving a 404 error and specifically on the woocommerce /cart and /checkout pages which is really bizarre.
I have even stripped out the settings to force https in site urls and gone straight into .htaccess and forced https throughout the whole site and even still I get errors on /cart and /checkout.
I have permalinks in WP set to custom and custom base url of /shop in woocommerce.
Has anyone else had this issue with woocommerce?
Thanks
Related
I moved wordpress website with https address to a localhost on LAMP server using All-in-one migrate plugin. Everything moved well except paths to media files (pictures).
Links to pictures in upload folder are broken. And nothing wrong with them except that they have https instead of http.
Console errors pic
I tried find/replace in wp_posts table, but it doesnt find anything. Tried to use plugin, that seems to do the same - doesnt help.
My .htaccess file is the default one from WP codex.
Weird, that I've done same process of migrating from https to localhost with another wordpress website and everything was fine.
The only difference between them, is that website with problem is using woocommerce plugin. And images are actualy products images. Maybe this will help.
UPDATE: Looks like problem is with all uploaded media files. I just've uploaded new file, and it's not showing neither. Some problems with apache configuration?
UPDATE2: Found out that this is 301 redirect problem. But where does it comes from? What to do to cancel those redirects? Do I need to edit .htaccess?
Screenshot of network tab for correspong images. Gray ones are http versions and red ones - are redirected to https
There are a few things, that I would recommend you to check.
Check your settings in the database _options table in the fields siteurl and home. You should have there http://domain-name
Also you need to check your wp-config.php. There might be rules added regarding siteurl and home using incorrect protocol.
There might be some plugins installed, which can trigger this https redirect, such as Really Simple SSL, or cache plugins, which also have settings regarding https.
And finally, check your theme code, if it is a custom theme, it also can be configured to use https in some cases.
I am enabling seo in opencart. After enabling the same in it, checkout, cart and login page stopped working. I have enabled SSL also in it. I am using AWS as the hosting server.
I have also renamed htaccess.txt to .htaccess file.
Please if any one can tell me where I am going wrong
When you stay stopped working, are you saying that they stopped working, or they are not SEO friendly (the SEO rewrite is not working for them)?
Please provide your htaccess and the error you're getting when you pull up the page
I have purchase and installed an SSL certificate on my server and everything seems to be working correctly.
I selected in Joomla Global Configuration -> Server -> Force HTTPS -> Entire Site. Now the site all works with SSL as expected.
But, I have 2 pages that needs to be in http because the remote call does not support https :(
I have been fiddling with joomla native .htaccess but I either get redirection loops or errors.
Could someone please help with the correct .htaccess code for force http in 2 pages?
There is a component that can be used to enable https on specific pages of website only. Check this https://extensions.joomla.org/extensions/extension/site-management/url-redirection/yireo-ssl-redirection/.
This will make your work easy no htaccess required.
I'm trying to change the URL for my site, by going to settings in wp-admin and changing both site url and wp url.
All seems well after I save changes, I'm able to navigate around my blog using the new url. However when I try accessing wp-admin I'm getting a redirect loop. I can still access the wp-admin login page with the old url admin site. In order to access my admin page again I have to login to my DB and reset both urls.
I've also tried to add this code with my urls to my wp-config file
define('WP_HOME','http://www.sample.com');
define('WP_SITEURL','http://www.sample.com');
Other information about my setup:
Openshift is hosting wordpress with the quick start app and proper alias have been added to my app.
Cloudflare is managing my DNS
I wouldn't think either of these factors would be the issue because the site wouldn't work at all if one of these were misconfigured, but at this point I'm drawing a blank. Was thinking maybe it might have something to do with wordpress forcing SSL for wp-admin?
Found It!
I love how when you gather all the information to ask a proper question it seems to line you up for the solution.
I'm also using http://wwwizer.com/naked-domain-redirect to redirect naked domain request to www using an A record in my DNS. All I had to do was turn off cloudflare's protection to this DNS entry.
I have installed WordPress in a sub-directory called blog in my root folder. Also, I have served the website from the root following the method given in this codex. My question is, if in future I am planning to create my own website at root and giving a link for blog to the WordPress site in the directory after that. So, then my permalink are going to be changed. If this gonna affect my SEO anyhow. Can anyone explain ?
Moving any web page ultimately requires a 301 redirect if you wish for Google to pass on any accrued SEO value. If not, the pages will be seen as new and may be seen as duplicate content.
Redirection is a great Wordpress plugin for adding 301 redirects quickly and easily. You just provide an incoming URL and where you would like that URL to be forwarded. The Plugin will do the leg work. It also tracks any 404 errors within the site if there are any errors.
High Level overview of Features
404 error monitoring - captures a log of 404 errors and allows you to easily map these to 301 redirects
Custom 'pass-through' redirections allowing you to pass a URL through to another page, file, or website.
Full logs for all redirected URLs
All URLs can be redirected, not just ones that don't exist
Redirection methods - redirect based upon login status, redirect to random pages, redirect based upon the referrer!
References
Redirection Main Website
Redirection Plugin on GitHub
Plugin Download on the Wordpress Plugins Directory