Last active
September 4, 2023 09:50
-
-
Save baxtheman/50ddf73438edb2d7aa8f758beed34da7 to your computer and use it in GitHub Desktop.
Liferay, apache RewriteRule to remove maximized from login page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test with https://htaccess.madewithlove.com/