When you are going to sever all requests over SSL then in some cases you need to only serve requests over SSL. While doing that you may have to disable port 80 so that all the requests will be only served through SSL. But in that case if user hits your url with http, user will see page not found error. Instead you can enable your port 80 and redirect all requests to https url with following configuration.
Adding "$request_uri" will make sure it will keep requested url as is as per requested. Other wise even if you hit the url like http://www.yourdomain.com/company/about.html still it will be redirected to https://www.yourdomain.com
server { listen 80; server_name www.yourdomain.com; return 301 https://www.yourdomain.com$request_uri; }
Adding "$request_uri" will make sure it will keep requested url as is as per requested. Other wise even if you hit the url like http://www.yourdomain.com/company/about.html still it will be redirected to https://www.yourdomain.com
افضل شركة رش مبيدات بالمدينة المنورة
ReplyDeleteشركة رش مبيدات حشرية بالدمام
شركة مكافحة حشرات بالمدينة المنورة
شركة مكافحة حشرات بالدمام
شركة تنظيف خزانات بالرياض
شركة تنظيف خزانات بجدة
شركة تنظيف خزانات المياه بالدمام
شركة تنظيف خزانات بالمدينة المنورة
شركة تنظيف واجهات حجر بالرياض
شركة كشف تسربات المياه بالرياض
شركة نقل اثاث بالرياض
شركة تنظيف فلل بالرياض
شركة رش مبيدات بالرياض
شركة مكافحة حشرات بالرياض
شركة عزل خزانات بالرياض
شركة تنظيف خزانات بالرياض
شركة تنظيف واجهات زجاج بالرياض
شركة مكافحة حشرات بمكة