Skip to content

Instantly share code, notes, and snippets.

@baxtheman
Last active September 4, 2023 09:50
Show Gist options
  • Save baxtheman/50ddf73438edb2d7aa8f758beed34da7 to your computer and use it in GitHub Desktop.
Save baxtheman/50ddf73438edb2d7aa8f758beed34da7 to your computer and use it in GitHub Desktop.
Liferay, apache RewriteRule to remove maximized from login page
## using ProxyPass, when p_p_id=com_liferay_login_web_portlet_LoginPortlet , then remove p_p_state=maximized
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)&?p_p_id=com_liferay_login_web_portlet_LoginPortlet&?(.*)$
RewriteCond %{QUERY_STRING} ^(.*)&?p_p_state=[^&]+&?(.*)$
RewriteRule ^/?(.*)$ /$1?%1%2 [L,PT]
@baxtheman
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment