I am using Odoo v8 website builder on an Ubuntu 14.04 clean install. I need to be able to redirect website page links and do not see any way to do it with a .htaccess file or anything within Odoo website builder to change web page URLs. Does anyone know of another approach to solving this? It is important for SEO to be able to name or redirect pages from another website once it is moved to an Odoo installation.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
You would need to create new controller that will return a redirection. To create a controller, you need to create class that inherits http.Controller and your redirection method should be decorated with @http.route
@http.route(['/mypage'], type='http', auth="public", website=True)
def redirect(self):
return werkzeug.utils.redirect("/myNewPage",301)
You can see the blog module from odoo v8 for more examples on the use of redirection.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Mar 15
|
11838 | ||
Company logo in website builder
Diselesaikan
|
|
4
Jul 16
|
2191 | |
V8 website builder - How to delete a page?
Diselesaikan
|
|
13
Nov 15
|
16477 | |
How can I use mass mailing without website module?
Diselesaikan
|
|
1
Sep 15
|
4810 | |
|
2
Mar 15
|
8984 |