掲示板
Apache web server - Redirect Selected Page rule
14年前 に Sandeep Nair によって更新されました。
Apache web server - Redirect Selected Page rule
Liferay Legend 投稿: 1744 参加年月日: 08/11/06 最新の投稿
Hi,
This really is apache web server question so I was not sure whether to post it in Miscellaneous category or Deployment.
I have configured Liferay (SSL) with Apache web server. Now i want https in selected pages only like login and create account
I have achieved somewhat progress using mod_rewrite as under
So this basically is redirecting my http://localhost/c/portal/login to https://localhost/c/portal/login
But it again internally redirects to http://localhost/web/guest/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Flogin
Can anyone help me with creating rewriteRule for the above url so that it again redirects to https. Also i want a rewrite rule when user clicks on create account
http://localhost/web/guest/home?p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Fcreate_account
Can anyone please help me?
Regards,
Sandeep
This really is apache web server question so I was not sure whether to post it in Miscellaneous category or Deployment.
I have configured Liferay (SSL) with Apache web server. Now i want https in selected pages only like login and create account
I have achieved somewhat progress using mod_rewrite as under
RewriteEngine On
RewriteRule ^(/c/portal/login.*)$ https://%{SERVER_NAME}$1 [R,L]
So this basically is redirecting my http://localhost/c/portal/login to https://localhost/c/portal/login
But it again internally redirects to http://localhost/web/guest/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Flogin
Can anyone help me with creating rewriteRule for the above url so that it again redirects to https. Also i want a rewrite rule when user clicks on create account
http://localhost/web/guest/home?p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Fcreate_account
Can anyone please help me?
Regards,
Sandeep