SSl not working on checkout page in magento? - magento

I am working on magento 1.7 version.I enabled the option for SSl from back-end.Now checkout page not working.It is showing "The page isn't redirecting properly".
I did following settings for this:-
system->configuration->Web (Auto-redirect to Base URL) set to No
system->configuration->Web (Use Web Server Rewrites) set to No
system->configuration->Web (Use Secure URLs in Front-end) set to Yes
system->configuration->Web (Use SID on Front-end) set to Yes
and ssl certificate is already install on server.
Any help would be much appreciated.

Made sure the secure base url is https://www.yourstore.com/?
Make sure your web server rewrites are on.
Make sure the auto-redirect to base url is on, you'll suffer SEO penalties if google considers your site duplicate content as it is responding on both www.yoursite.com and
yoursite.com
Your other settings are fine, effectively everything in your post should be set to yes!

Related

Magento 2 not fully secured error and admin not working

I recently installed a godaddy ssl certificate on my magento site. My home page loads fine with no mixed content. However, all the links in the navigation menu are being generated as http:// and the cart page has mixed content warnings. My config is:
Auto redirect to base url: no
use web server rewrites: no
use secure urls in frontend: yes
use secure urls in admin: yes
offloader header: SSL_OFFLOADED.
Please tell me that how can I call my all http catalog product to https.
How do I get rid of all the mixed content? Which files do I need to change?
In Magento Admin, navigate to
Stores > Configuration > Advanced > System.
Expand the Full Page Cache section, then Fastly Configuration, then Advanced Configuration.
Click the Force TLS button, and make sure the current state of Force TLS is displayed as enabled.

Magento From local server to live web server, links not working

Now, the homepage is working fine but every link on it directs you to a 404 not found error. Can't even access "/admin".
Just add "index.php" next to the domain. For ex: If your website name is www.google.com then try to access this as www.google.com/index.php/electronics/cell-phones.html
This is due to the url rewrite in magento.
Permanent solution: Go to the admin and follow this:
System-> Configuration -> Web ->Search engine Optimization -> Url Web Server Rewrites. Make this to YES and SAVE the changes.
Now clear the cache and navigate to all the page in your website.

SSL issue in Joomla web site

We have installed SSL in server for a Joomla website and https is working fine for Joomla admin panel. But in front end it auto redirecting to http.
i.e in browser if I enter https://mysite.com it auto redirect to http://mysite.com (without S).
I do not know how to fix this. Please help me.
Joomla version - 2.5.7
The following instructions are for Joomla 3, but for other versions the instructions should be identical, it will just look a bit different and the menus might be in a different place.
Log into your Joomla admin site.
Go to Global Configuration
Go to the Server tab.
Find the option "Force SSL" and change it to "Entire Site".
Click "Save and Close"
Clear your site cache.
If you have any SEF extensions with caches, they will need their caches purged too. They may also have their own HTTPS settings within their configuration, however that will vary by extension.
Here is a screenshot taken from Joomla 3:
It is also possible to activate SSL on a per-page basis. This is done via the menu manager.
You may also want to check your web server configuration (i.e. .htaccess) for any rewrites or redirects, but that's beyond the scope of Joomla configuration.

Magento getProductUrl() is always returning HTTP

Even when I am on HTTPS, Magento's getProductUrl() always seem to return an HTTP URL. Any ways I can make this auto-switch to HTTPS? (or have it return relative protocol url).
I would say it's a rather 'standard' configuration.
Base URL is http://example.com/
Secure URL is https://example.com/
Use Secure URLs in Frontend is No
Base Link URL is {{unsecure_base_url}}
I am aware I could change the above to {{secure_base_url}} however I do not want to force a change from HTTP to HTTPS, I only need it to stay relative.
The main Magento's benefit, is that you can do anything you want with it :) So, yes, you can output HTTPS product urls or relative ones. However, before choosing a solution, let's consider the Magento authors' vision.
The HTTPS for frontend is designed to work only for specific areas like Customer account, Payment methods, Checkout, etc. There is nothing so private about products, which makes it necessary to be viewed via HTTPS as well.
By default Magento doesn't use HTTPS even for pages, mentioned above. In order to turn HTTPS on, the "Use Secure URLs in Frontend" option must be set to "Yes". Which, as described, will engage HTTPS only in limited set of pages that contain some private data.
So the best solution for you depends on specifics of the store, you are developing.
1) If you want to engage HTTPS for all the pages on frontend - then the best solution is to put "https://..." into "Base URL" option for "Unsecure" web url configuration.
2) If you want to turn on HTTPS only for product links and only for a limited number of pages, then you can override templates of that pages in order to put there relative urls. The actual code can be implemented in any way you like, even the simplest already proposed way is ok:
echo trim($_product->getProductUrl(),'http:')
3) If you want to engage HTTPS for all the product links at frontend - then the best way is to override Mage_Catalog_Module_Product_Url model and change method getUrl() - you need to put there
$routeParams['_secure'] = true;
This will produce all the product urls with HTTPS protocol.
4) If you need to show HTTP product links only at HTTP pages and HTTPS product links only at HTTPS pages, then you can use method 3) with a more sophisticated logic: check the protocol of current page before setting '_secure' parameter.
Hope, it helps.
I just did it the primitive way, sometimes it works best:
echo trim($_product->getProductUrl(),'http:')
Instead
$product->getProductUrl()
Try
$product->getUrlModel()->getUrl($product, array('_secure'=>(bool)Mage::app()->getStore()->isCurrentlySecure()))
This gives you a secure/unsecured product url based on your current protocol.
THere's an understated but important option in System | Configuration | Web ~ where you have to say "use secure url in frontend" -- if you set this to yes then a page loaded by https will use https links,
no need to write code or provide additional configuration in most cases

magento category url,admin 404 error

I am a magento newbie.
I've observed that when I make an installation of magento by copying all contents of the extraction directly to localhost.... i.e (when app, media, skin, index.php etc all pasted directly in localhost) I am unable to access the admin by simply typing in localhost/admin.
Whereas I have to type in localhost/index.php/admin to get into the admin panel.
Also when i click on any category i have the same problem.
I have to append index.php/ before the category name to get the category link working.
Can anyone please tell me how to get them working.
Check your Base URL in the Admin Panel, go to System | Configuration | Web and make sure the Secure and Unsecure Base URL does not include the 'index.php' part.
If you do not have index.php in my secure or unsecure web configuration and this happening on front end and back end, try to enable url rewrites and see if that solves it. You need mod_rewrite enabled on your localhost.
What is your local server?

Resources