I need to redirect all http pages to https or remove the HTTP version.
I have several problems with the SEO of my site, because there are duplicate pages (http and https). Today for example my home page on google is using the HTTP protocol and I can not remove.
Another problem is because the pages exist with "www" and without, I would like to use them all with "www"
How to solve this problem?
Comments:
Already tried to configure redirection for example:
http://mysite.com. redirect to https://www.mysite.com and it's not work.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
You need to configure Apache or Nginx on your server and then need to install SSL certificate as well. Then your url will be automatic move to https.
You can follow below link as well-
https://www.odoo.com/documentation/11.0/setup/deploy.html#https
you can Do it this way: in apache:
<VirtualHost *:80>
ServerName yoursite.com
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(/(.*))?$ https://%{HTTP_HOST}/$1 [R=301,L]
DocumentRoot /opt/odoo/odoo12 (this sould be your odoo path)
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass / http://localhost:8069/
ProxyPassReverse / http://localhost:8069/
not fancy, but it works
Please use a reverse proxy for this purpose such as Apache, nginx etc. The easiest to use is Caddy Server www.caddyserver.com.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Error 400 : redirect_uri_mismatch
Đã xử lý
|
|
8
thg 2 25
|
23755 | |
|
2
thg 3 22
|
6316 | ||
odoo 11.0 web.base.url
Đã xử lý
|
|
1
thg 2 18
|
7965 | |
|
2
thg 11 15
|
5204 | ||
|
1
thg 7 15
|
21503 |
Hi, for this you need SSL certificate