Fórum

Apache web server - Redirect Selected Page rule

thumbnail
Sandeep Nair, modificado 14 Anos atrás.

Apache web server - Redirect Selected Page rule

Liferay Legend Postagens: 1744 Data de Entrada: 06/11/08 Postagens Recentes
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

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