Enabling Seo Url in opencart - Checkout and Cart page not working - php

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

Related

Wordpress - Remove https redirects for media files after moving to localhost

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.

Staging Wordpress shows 404 for WooCommerce Products & Categories

I have a Wordpress site with Woocommerce. For the past years, I have been creating staging environment through Softaculous interface, do the updates in my staging environment and then push them to the live site.
However, recently I came across an issue with WooCommerce products and I can't seem to find a way to fix it. Basically when I add a new product to WooCommerce and try to preview it on the staging site, I get a 404 No Results Found. The product category pages are also not working and some of the pages are redirecting me to the live site.
I have:
tried creating a new staging site in case something went wrong
disabled all plugins except WooCommerce
updating permalinks in case something went wrong
confirmed that the URL
verified that the wp-config is correct for staging environment
confirmed with hosting company that requests are hitting the correct database, though there are no other logs from their end
have purged cloudflare cache and also enabled development mode after just in case
All the above however have not fixed the issue and at this point I am pretty much clueless at what might be the issue. Is there anything else that I should look for or anyone ever encountered this issue?
Edit: I am on the latest versions of WordPress and WooCommerce. All other plugins are up to date as well (though disabled at this point).
Thanks
I managed to find the root culprit which was leading to this behaviour.
The SSL certificate had expired and hence when you try to load the staging site, Cloudflare was redirecting me to the live site.
Once the SSL was renewed, all started working fine as before.

Joomla Force SSL in Entire site except 1 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.

How can I force woocommerce to use https in all urls?

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

Typo3 strange https redirects

i have a really weird problem on a typo3 site.
The site currently runs on Typo3 4.6.6 (yeah i know we are in the process of upgrading it to 6.2 LTS)
In the backend we have 3 separate pages. The webspace where this site runs was currently upgraded to PHP 5.5. Nothing else has changed (as far as we know)
The problem is that on certain pages we get redirected to a https version of the same page, although the link is a http link.
See for instance here: http://www.phd-cell-signaling.at/home.html
If you open this it loads fine. But as soon as you click on a (http) link on the site, you get redirected to an https version hence the browser doesn't load all the stuff included via http (stylesheets for instance). But when you then delete the "s" from the address bar and hit enter you don't get redirected. And this is something i don't really understand.
And if that'd be a general issue shouldn't the other pages in the same typo3 environment also be affected? Or am i missing something here.
Since I'm not that familiar with typo3 it would be greatly appreciated if somebody could link me in the right direction where the problem could be.
We use realURL for example. But I checked the configuration i found and it doesn't appear to do anything that causes the redirect.
I also checked the typoscript configuration of all the pages in the backend with no success.
Are there any other plugins that might cause something like this?
Any help greatly appreciated.
When you follow a link on the page you posted, then the webserver returns the statuscode 301 (moved permanently) with the new location for that page (which is the requested page with the HTTPS scheme).
When TYPO3 is properly configured for SSL usage for single pages (so a backend user can use "Choose protocol" selectbox in the backend), then it already renders affected links with the proper scheme.
Your problem described can have multiple reasons. Please check the following:
Inspect the .htaccess file in the root directory of the TYPO3 website for any scheme redirects
Check if the webserver itself has configured scheme redirects for that virtual host
Goto the TYPO3 extension manager and search for local installed HTTPS or SSL redirection extensions

Categories