掲示板
[RESOLVED] Remove "/web/guest" from url
16年前 に Arnd Kohlen によって更新されました。
[RESOLVED] Remove "/web/guest" from url
New Member 投稿: 5 参加年月日: 07/12/20 最新の投稿
Our liferay is now running and now it is important to optimize the site for the search engines therefore I need to remove the part "/web/guest" from the url.
For example:
Default: http://www.domain.com/web/guest/services
Should be: http://www.domain.com/services
I was searching for some configuration possibilities but only found a suggestion to use "mod_proxy_html". This module is able to change the url and the links inside the html-code.
Is there a better way to remove "/web/guest"? I'd like to know if there is an option in liferay (communities, virtual hosts...) to solve this. I just need a yes/no to know if I still have to search for some hacks in the configuration.
Thank you in advance.
Arnd
For example:
Default: http://www.domain.com/web/guest/services
Should be: http://www.domain.com/services
I was searching for some configuration possibilities but only found a suggestion to use "mod_proxy_html". This module is able to change the url and the links inside the html-code.
Is there a better way to remove "/web/guest"? I'd like to know if there is an option in liferay (communities, virtual hosts...) to solve this. I just need a yes/no to know if I still have to search for some hacks in the configuration.
Thank you in advance.
Arnd
16年前 に Arnd Kohlen によって更新されました。
RE: Remove "/web/guest" from url
New Member 投稿: 5 参加年月日: 07/12/20 最新の投稿
Oops, seems like I already solved it...
This seems to work. There is still access over "/web/guest/pagename" possible but default targets now to /pagename.
Sorry for spamming your forums
- I created a community www.domain.com
- I created a few public pages and entered the friendly url for them
- For the community I entered www.domain.com as virtual host for the "Public Virtual Host"
This seems to work. There is still access over "/web/guest/pagename" possible but default targets now to /pagename.
Sorry for spamming your forums
Hi Arnd-
Glad you solved your problem! Don't worry about 'spamming' our forums, for every question that's asked on these forums there's probably 100 other people wondering how to do the exact same thing. Thanks for posting your question and your solution! Please add a "(RESOLVED)" tag to the subject header of your post. Oh and would you kindly consider adding your question and answer to the Liferay Wiki FAQ page? http://wiki.liferay.com/index.php/FAQ
Thanks
-jr
Glad you solved your problem! Don't worry about 'spamming' our forums, for every question that's asked on these forums there's probably 100 other people wondering how to do the exact same thing. Thanks for posting your question and your solution! Please add a "(RESOLVED)" tag to the subject header of your post. Oh and would you kindly consider adding your question and answer to the Liferay Wiki FAQ page? http://wiki.liferay.com/index.php/FAQ
Thanks
-jr
16年前 に Wade MacDonald によって更新されました。
RE: Remove "/web/guest" from url
Junior Member 投稿: 40 参加年月日: 08/03/06 最新の投稿
I agree... post away and solve them too LOL it helps id10t guys like me
13年前 に Dominik Fischer によって更新されました。
RE: Remove "/web/guest" from url
New Member 投稿: 1 参加年月日: 10/06/27 最新の投稿
Hey there,
I did exactly the same:
1. I created a community www.domain.com
2. I created a few public pages and entered the friendly url for them
3. For the community I entered www.domain.com as virtual host for the "Public Virtual Host"
Now I can reach my community via the virtual host url www.domain.com.
Nevertheless the logo on the top left still points to www.domain.com/web/guest which directs to a different community with different content?
There should be no link to an other community.
Is there a way to get rid of that web/guest community link? Is it needed from architectural grounds?
Best regards,
Dominik
I did exactly the same:
1. I created a community www.domain.com
2. I created a few public pages and entered the friendly url for them
3. For the community I entered www.domain.com as virtual host for the "Public Virtual Host"
Now I can reach my community via the virtual host url www.domain.com.
Nevertheless the logo on the top left still points to www.domain.com/web/guest which directs to a different community with different content?
There should be no link to an other community.
Is there a way to get rid of that web/guest community link? Is it needed from architectural grounds?
Best regards,
Dominik
13年前 に Priit Liivak によって更新されました。
RE: Remove "/web/guest" from url
New Member 投稿: 13 参加年月日: 10/06/16 最新の投稿Dominik Fischer:
Nevertheless the logo on the top left still points to www.domain.com/web/guest which directs to a different community with different content?
There should be no link to an other community.
Is there a way to get rid of that web/guest community link? Is it needed from architectural grounds?
Best regards,
Dominik
From control panel under Portal -> Settings set the value for home url. For example /services and logo will point to www.domain.com/services
14年前 に Anthony Cinelli によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
New Member 投稿: 2 参加年月日: 09/08/01 最新の投稿
Hi all,
This works well, however DOES NOT work with the new Liferay 5.2 feature of "Portal IInstances". I have created multiple portal instances, www.example.com , and cannot use this as a Virtual Host value using the method you describe here.
Any input?
Thanks for all the work you guys are doing, contributing.
Anthony
This works well, however DOES NOT work with the new Liferay 5.2 feature of "Portal IInstances". I have created multiple portal instances, www.example.com , and cannot use this as a Virtual Host value using the method you describe here.
Any input?
Thanks for all the work you guys are doing, contributing.
Anthony
14年前 に Tony Portalco によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
New Member 投稿: 1 参加年月日: 09/08/07 最新の投稿
This is an important requirement for SEO. Any thoughts on how to achieve this would be most appreciated.
14年前 に Ziggy R によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
Expert 投稿: 293 参加年月日: 08/06/08 最新の投稿Tony Portalco:
This is an important requirement for SEO. Any thoughts on how to achieve this would be most appreciated.
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Virtual+Hosting+(Communities)
14年前 に Jerry Niu によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
Expert 投稿: 451 参加年月日: 06/06/21 最新の投稿
14年前 に Ziggy R によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
Expert 投稿: 293 参加年月日: 08/06/08 最新の投稿Jerry Niu:
http://www.liferay.com/web/jonathan.neal/blog/-/blogs/trackback/lose-ten-pounds-off-your-url
That link is broken
14年前 に Jerry Niu によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
Expert 投稿: 451 参加年月日: 06/06/21 最新の投稿
13年前 に Arun Krishnan によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
New Member 投稿: 1 参加年月日: 10/11/30 最新の投稿
I have a query related to this post, How can I use the same virtual host to remove "/web" for multiple communities?
eg : my website is www.abc.com and communities are comm1, comm2 , comm3 ... comm10. I want all communities urls to be prefixed with www.abc.com but no '/web' in it.
I am using lifeary portal version 5.1. Please let me know your suggestions.
eg : my website is www.abc.com and communities are comm1, comm2 , comm3 ... comm10. I want all communities urls to be prefixed with www.abc.com but no '/web' in it.
I am using lifeary portal version 5.1. Please let me know your suggestions.
11年前 に John Nguyen によって更新されました。
RE: Remove "/web/guest" from url
New Member 投稿: 21 参加年月日: 12/07/16 最新の投稿Arun Krishnan:
I have a query related to this post, How can I use the same virtual host to remove "/web" for multiple communities?
eg : my website is www.abc.com and communities are comm1, comm2 , comm3 ... comm10. I want all communities urls to be prefixed with www.abc.com but no '/web' in it.
I am using lifeary portal version 5.1. Please let me know your suggestions.
Did you ever get this resolved?
11年前 に John Nguyen によって更新されました。
RE: Remove "/web/guest" from url
New Member 投稿: 21 参加年月日: 12/07/16 最新の投稿
Does this help?
http://stackoverflow.com/questions/12426047/liferay-removing-web-from-all-community-sites
http://stackoverflow.com/questions/12426047/liferay-removing-web-from-all-community-sites
11年前 に John Nguyen によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
New Member 投稿: 21 参加年月日: 12/07/16 最新の投稿Arnd Kohlen:
Our liferay is now running and now it is important to optimize the site for the search engines therefore I need to remove the part "/web/guest" from the url.
For example:
Default: http://www.domain.com/web/guest/services
Should be: http://www.domain.com/services
I was searching for some configuration possibilities but only found a suggestion to use "mod_proxy_html". This module is able to change the url and the links inside the html-code.
Is there a better way to remove "/web/guest"? I'd like to know if there is an option in liferay (communities, virtual hosts...) to solve this. I just need a yes/no to know if I still have to search for some hacks in the configuration.
Thank you in advance.
Arnd
Basically we took the same route and was successful so far. However, be aware that with this global redirection, it could break some of the pages on the main site if the friendly url matches that of the community site name.
ProxyHTMLExtended On
ProxyHTMLEnable On
SetOutputFilter INFLATE;proxy-html;DEFLATE
ProxyHTMLURLMap ^/web/(.*)$ /$1 Rli
11年前 に Johann Kneringer によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
Junior Member 投稿: 42 参加年月日: 11/11/10 最新の投稿
Unfortunatly, this does not work...I am using the following configuration:
<VirtualHost *:443>
DocumentRoot /var/www
SSLProxyEngine On
ServerName fhonlinetest.fh-kufstein.ac.at
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyHTMLLogVerbose On
LogLevel Debug
ProxyHTMLDocType "<!DOCTYPE html>"
ProxyRequests Off
ProxyPass / ajp://localhost:8009/
<Location />
ProxyHTMLExtended On
ProxyHTMLInterp On
ProxyPassReverse /
SetOutputFilter INFLATE;proxy-html;DEFLATE
ProxyHTMLURLMap ^/web/(.*)$ /$1 Rli
</Location>
I use ProxyHTMLInterp On instead of ProxyHTMLEnable On because i use mod_jk 3.0.1.
On the error.log I get the following message:
"No content-type; bailing out of proxy-html filter, referer: https://mysub.domain.com/web/mysite"
Doctype and meta-info:
<!DOCTYPE html><html class="ltr" dir="ltr" lang="de-DE"><head><meta http-equiv="X-UA-Compatible" content="IE=7"><title>My Site</title><meta content="text/html; charset=UTF-8" http-equiv="content-type">
is there a solution for this?
best regards
<VirtualHost *:443>
DocumentRoot /var/www
SSLProxyEngine On
ServerName fhonlinetest.fh-kufstein.ac.at
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyHTMLLogVerbose On
LogLevel Debug
ProxyHTMLDocType "<!DOCTYPE html>"
ProxyRequests Off
ProxyPass / ajp://localhost:8009/
<Location />
ProxyHTMLExtended On
ProxyHTMLInterp On
ProxyPassReverse /
SetOutputFilter INFLATE;proxy-html;DEFLATE
ProxyHTMLURLMap ^/web/(.*)$ /$1 Rli
</Location>
I use ProxyHTMLInterp On instead of ProxyHTMLEnable On because i use mod_jk 3.0.1.
On the error.log I get the following message:
"No content-type; bailing out of proxy-html filter, referer: https://mysub.domain.com/web/mysite"
Doctype and meta-info:
<!DOCTYPE html><html class="ltr" dir="ltr" lang="de-DE"><head><meta http-equiv="X-UA-Compatible" content="IE=7"><title>My Site</title><meta content="text/html; charset=UTF-8" http-equiv="content-type">
is there a solution for this?
best regards
7年前 に John Arguedas によって更新されました。
RE: [RESOLVED] Remove "/web/guest" from url
New Member 投稿: 5 参加年月日: 16/08/30 最新の投稿
Solution on liferay 7?