Fórum
SEO - remove /home and ;jsessionid in URL - very urgent
Ahamed Sakir, modificado 11 Anos atrás.
SEO - remove /home and ;jsessionid in URL - very urgent
Regular Member Postagens: 129 Data de Entrada: 22/08/08 Postagens Recentes
Hi All,
Following are SEO related queries,
1. if i type www.sample.com/home then it should redirect to www.sample.com only. /home should not appear. How to achieve this?
2. In portal-ext.properties.
session.enable.url.with.session.id=false
after this jsessionid=C1B153C5E8A32118330F8D04A05A2DA7 not at all displaying in URL for all pages.
But i took http://www.sample.com/events;jsessionid=C1B153C5E8A32118330F8D04A05A2DA7 from cookies or else then again it is going to that page also showing jsessionid. how to block or redirect to concern page.
3. how to avoid orphan's page like
http://www.sample.com/home;jsessionid=BB69F0DEF79877629096AFEFFB53D478?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_58_struts_action=%2Flogin%2Fopen_id
it should display as www.sample.com
Following are SEO related queries,
1. if i type www.sample.com/home then it should redirect to www.sample.com only. /home should not appear. How to achieve this?
2. In portal-ext.properties.
session.enable.url.with.session.id=false
after this jsessionid=C1B153C5E8A32118330F8D04A05A2DA7 not at all displaying in URL for all pages.
But i took http://www.sample.com/events;jsessionid=C1B153C5E8A32118330F8D04A05A2DA7 from cookies or else then again it is going to that page also showing jsessionid. how to block or redirect to concern page.
3. how to avoid orphan's page like
http://www.sample.com/home;jsessionid=BB69F0DEF79877629096AFEFFB53D478?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_58_struts_action=%2Flogin%2Fopen_id
it should display as www.sample.com
jelmer kuperus, modificado 11 Anos atrás.
RE: SEO - redirect URL - very urgent
Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
You should take a look at mod_rewrite or liferay's ROOT/WEB-INF/urlrewrite.xml file
Ahamed Sakir, modificado 11 Anos atrás.
RE: SEO - redirect URL - very urgent
Regular Member Postagens: 129 Data de Entrada: 22/08/08 Postagens Recentes
Thanks for ur reply.
I tried many ways still no effect for removing sessionId .
server/tomcat-6.0.26/webapps/ROOT/WEB-INF/urlrewrite.xml
========================================================================
<rule>
<name>Strip URL Session ID's</name>
<condition type="requested-session-id-from-url" operator="equal">true</condition>
<from>^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$</from>
<to type="permanent-redirect">$1$2$3</to>
</rule>
===============================================
<outbound-rule encodefirst="true">
<note>Remove jsessionid from embedded urls - for urls WITH query parameters</note>
<from>^/(.*);jsessionid=.*[?](.*)$</from>
<to encode="false">/$1?$2</to>
</outbound-rule>
<outbound-rule encodefirst="true">
<note>Remove jsessionid from embedded urls - for urls WITHOUT query parameters</note>
<from>^/(.*);jsessionid=.*[^?]$</from>
<to encode="false">/$1</to>
</outbound-rule>
===================================================================
<outbound-rule encodefirst="true">
<name>Strip URL Session ID's</name>
<from>^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$</from>
<to>$1$2$3</to>
</outbound-rule>
==========================================================================================
But no effect . anywhere we need to enable for above working.
Regards
Sakir
I tried many ways still no effect for removing sessionId .
server/tomcat-6.0.26/webapps/ROOT/WEB-INF/urlrewrite.xml
========================================================================
<rule>
<name>Strip URL Session ID's</name>
<condition type="requested-session-id-from-url" operator="equal">true</condition>
<from>^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$</from>
<to type="permanent-redirect">$1$2$3</to>
</rule>
===============================================
<outbound-rule encodefirst="true">
<note>Remove jsessionid from embedded urls - for urls WITH query parameters</note>
<from>^/(.*);jsessionid=.*[?](.*)$</from>
<to encode="false">/$1?$2</to>
</outbound-rule>
<outbound-rule encodefirst="true">
<note>Remove jsessionid from embedded urls - for urls WITHOUT query parameters</note>
<from>^/(.*);jsessionid=.*[^?]$</from>
<to encode="false">/$1</to>
</outbound-rule>
===================================================================
<outbound-rule encodefirst="true">
<name>Strip URL Session ID's</name>
<from>^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$</from>
<to>$1$2$3</to>
</outbound-rule>
==========================================================================================
But no effect . anywhere we need to enable for above working.
Regards
Sakir
Diego P, modificado 11 Anos atrás.
RE: SEO - redirect URL - very urgent
New Member Postagens: 2 Data de Entrada: 20/03/12 Postagens Recentes
Hi Sakir, in the case you are using Apache Server with AJP in front of Liferay (Tomcat), you can try the following in AJP configuration:
ProxyPassReverseCookiePath / /
For instance, in my /etc/httpd/conf.d/proxy_ajp.conf I have something like this:
After restarting, jsessionid is not longer in URLs. Hope it helps!
ProxyPassReverseCookiePath / /
For instance, in my /etc/httpd/conf.d/proxy_ajp.conf I have something like this:
<ifmodule !proxy_ajp_module>
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
</ifmodule>
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
ProxyPassReverseCookiePath / /
After restarting, jsessionid is not longer in URLs. Hope it helps!
Akash Jaisawal, modificado 9 Anos atrás.
RE: SEO - redirect URL - very urgent
Regular Member Postagens: 141 Data de Entrada: 03/03/12 Postagens RecentesDiego P:
Hi Sakir, in the case you are using Apache Server with AJP in front of Liferay (Tomcat), you can try the following in AJP configuration:
ProxyPassReverseCookiePath / /
For instance, in my /etc/httpd/conf.d/proxy_ajp.conf I have something like this:<ifmodule !proxy_ajp_module> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so </ifmodule> ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ ProxyPassReverseCookiePath / /
After restarting, jsessionid is not longer in URLs. Hope it helps!
Hello Diego,
Can you please exlore your answer? As its not understandble for newbies