Magento html?___SID=U at the end of urls - magento

I have a multistore magento site. SID in front is enabled as I want customers to cross around sites without login issue.
But I want to remove "html?___SID=" which is at the end of all my urls.
What can i do?

Go to Admin => System => Configuration => Web => Session Validation Settings and disable config Use SID on Frontend => No
For more information check here or check here

Related

Is it possible to make a file response with a file from another domain in Laravel hosted on Plesk?

I have two laravel projects on the same server under two different domains. Basically an admin site and client site. Usersite is using content that is stored on admin site. It works fine until I need to present a pdf to a user that is stored on the admin site. I do that with
return response()->file($filePath, ['Content-Disposition' => 'inline; filename="'.$object->title.'.pdf','Content-Type' => 'application/pdf']);
Now the problem with this is that these are hosted on Plesk, meaning usersite is not authorized to access files on admin site and I get errors like
open_basedir restriction in effect. File(/var/www/vhosts/dominaname/httpdocs/storage/app/public/myfile.pdf) is not within the allowed path(s): (/var/www/vhosts/domainname:/tmp/:/var/www/vhosts/dominaname/httpdocs/storage/app/public/)
I have followed an article explaining how to set open_basedir settings to allow this but they do not work as I'm still getting the same error.
I have also tried to achieve the same result with
return Storage::response($filePath);
But that didn't work either.

How can I add a subdomain to Admin Panel Laravel Backpack(backpackforlaravel)?

How can I add a subdomain to Admin Panel Laravel Backpack?
I want to add a subdomain to my Laravel Backpack admin panel, I need point 'admin.example.com' subdomain to Laravel Backpack admin Panel.
Laravel Backpack provides route prefix for Admin Panel.
I want to use the same project source code for the site, admin and API.
admin.example.com -> Admin
api.example.com -> API
www.example.com -> Site
You can get Laravel Backpack to run under a subdomain, for example admin.app.local, instead of the prefix (for example app.local/admin) as follows:
In the .env file, you can define the admin subdomain, something useful if you work in different environments where it changes:
ADMIN_SUBDOMAIN = admin.app.local
Optionally you can also define in config/app.php, whether or not the admin will use subdomain, adding:
'use_admin_subdomain' => true,
Then in the config/backpack/base.php file, you will want to stop using the admin route prefix, since you will use admin in the subdomain, so you must define:
'route_prefix' => '',
Then in routes/backpack/custom.php, you will be able to include all routes under a new group, which will determine if the admin backpack runs under a subdomain (defined in app.use_admin_subdomain) and the subdomain (defined in env('ADMIN_SUBDOMAIN'), and all the original routes and groups will go within:
Route::group (
config('app.use_admin_subdomain') ? ['domain' => env('ADMIN_SUBDOMAIN')]: []
, function () {
... original backpack routes
});
Optionally in the same backpack routes file, you can remove the prefix of the original routes, commenting:
'prefix' => config ('backpack.base.route_prefix', 'admin'),
Although being empty in config/backpack/base.php has no effect yet without commenting.
You can follow the same procedure to define your API routes under the api.app.local subdomain, in that case in routes/api.php file.

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 Shopping cart empty after adding product to cart and proceed to checkout

I do have problem while checkout out cart getting empty, strange thing is not for everyone and not always.
In few system it's working fine and most of the system shopping cart empty.i am using FPC a free full page cache module even disabling that no help.
I have tried following things with no luck.
1.Set the higher cookies value in session cookie management 1day,10day,100day,cookie domain set to blank and path set to (/ and
or blank)
Use HTTP Only to No
and in session validation setting everything set to NO (Validate REMOTE_ADDR,Validate HTTP_VIA,Validate HTTP_X_FORWARDED_FOR,Validate
HTTP_USER_AGENT,Use SID on Frontend)
When HTTP_USER_AGENT set to Yes, new error came the page has a redirect loop but clearing the cookies and cahe working but not the
solution.
When (Validate REMOTE_ADDR,Validate HTTP_VIA,Validate HTTP_X_FORWARDED_FOR,Use SID on Frontend) any of these set to Yes
page started redirecting to home page, not able to see product page.
But no luck
2.commented the code in Mage_Core_Model_Session_Abstract_Varien::start()
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath()
/'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()/
);
No Luck
3.Strange thing happened always i am getting two different cookie with same name as frontend with different domain values domain.com
and .domain.com with sometimes different value for chrome and firefox
one (domain.com). I am failing to understand who is setting this
cookie domain in magento when commented out the above code still has
the cookie domain and even when domain explicitly set to blank still
there is cookie domain. i manually searched those cookie values in
var/session folder and found those entries as well.
Does anyone have any further idea how to get rid of this.

How to process checkout on secure subdomain like secure.doamin.com in magento

we have store in magento and it working fine we want to checkout of oder on sub domain secure.domain.com instead of same site so please tell me the steps how to achieve this functionality . Thanks in advance.
For a secure subdomain i.e. secure.domain.com , i assume you have created another website in magento admin.
What is required is that in admin
System > Configuration > Web>Session Cookie Management > Cookie Domain
add for that particular website domain as domain.com.
Check this link for more info,
http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/system_config/edit/web
Let me know if it works!

Resources