From the moment you give Liferay a try and start your portal for the very first time you’ll notice something a bit dirty about Liferay URL’s.
That’s right: I’m talking about the /web/guest prefix in the frontend. In the early days I was working with Liferay, I just thought that it was some “Java web development hocus pocus thing” that you will just have to accept when doing a Liferay implementation.
Keeping the prefix in your URL’s is certainly not a disaster, but for SEO matters clean URL’s are prefered.
It’s always a good idea to check the Liferay portal.properties first for properties that might be interesting for your Liferay implementation. You’ll find some properties in portal.properties that seem interesting regarding URL’s in Liferay.
Looks great doesn’t it? It looks like we can get rid of the /web/guest very easily! Just fill in an empty string for the layout.friendly.url.public.servlet.mapping property and we should be all done, right? I warn you though: don’t do this! Because you will break your Liferay installation completely and you won't be able to reach your portal anymore.
This is not the way to remove the /web/guest from Liferay URL’s. The right answer: take a closer look at Virtual Hosting in Liferay. There’s already an article on the Liferay Wiki about this topic.
The layout.friendly.url.private.group.servlet.mapping property (/group by default) is mapped to the private pages of a community.
The layout.friendly.url.public.servlet.mapping property (/web by default) is mapped to the public pages of a community.
The layout.friendly.url.user.servlet.mapping property (/user by default) is mapped to the user pages.
What we’re going to do through Virtual Hosting is mapping one domain directly to the public pages of a community. When this mapping exists Liferay no longer needs the /web/guest prefix (and other mappings listed above) to know which community a visitor is accessing (with the “/web/guest” prefix you are accessing the public pages of the Guest community).
In the steps below I will show you how to remove the /web/guest from the frontend of a Liferay portal.
Add a new Liferay instance (only if needed). You must be logged in (as omniadmin) to do this. In this example I’m adding a new instance for the domain e-kon.dev.
Have a closer look at the frontend. When you browse to the newly added instance you’ll see that the /web/guest is present in the URL’s.
Configure the Virtual Hosting.
Log in (as an Administrator) and go to the Communities overview.
Choose Manage pages in the overview:
Choose Settings in the tabs.
For the Public Virtual Host (this will be mapped to the Public Pages) enter www.e-kon.dev. You can leave the Private Virtual Host just empty.
Check the frontend again and browse to www.e-kon.dev. You’ll notice that /web/guest is no longer present in URL’s! Note that you can still access pages with the /web/guest prefix!
I hope this article was useful to all Liferay developers out there. Feel free to comment or ask questions about the Virtual Hosting feature in Liferay through our comment section. Do you know other ways to handle this?
Nice tutorial.. But as you said the page can still be accessed with /web/guest prefix. I think this is still bad for SEO as duplicate content is getting served from different url's. What do you think abou this
Sivan Hermon ()
I was really happy to see I'm not the only one fighting this.
I'm trying to change the settings so each user will see his community page after his login.
I followed this tutorial (with and without creating the new portal instance), but it did not work for my :(
My portal-ext.properties is basically empty.
When I initially left a comment I appear to
have clicked on the -Notify me when new comments are added- checkbox and now every
time a comment is added I recieve four emails with
the same comment. Perhaps there is a way you can remove me from that service?
I'm extremely inspired together with your writing skills as neatly
as with the structure in yur blog. Is tnat thijs a paid
subject matter or did you modify it your self? Eitther way stay up
the nice high quality writing, it is uncommon to peer a
great weblog like his one nowadays..
You are so awesome! I do not think I've truly read a single thing lioe
thyis before. So great to discover spmebody with genuine thoughts on this subject matter.
Really.. many thanks for starting this up. This site iss one thing that is required on the web, someone with some originality!
Thank youu for every other wonderful article. The place else could anybody get that kind
of info in such an ideal way of writing? I've a presentation subsequjent week, and I'm onn the search for such information.
I must thank you for the efforts you have put in penning
this website. I'm hoping to view the same high-grade blog posts by you
later on as well. In truth, your creative writing abilities has eencouraged me to get my own website now ;)
Definitely believe that which you stated. Your favorite reason seemed to be on the internet the simplest thing to be aware of.
I say to you, I definitely get annoyed while people consider worries that they just do not
know about. You managed to hit the nail upon the top and also defined out
the whole thing without having side effect
, people could take a signal. Will likely be back to get more.
With havin so much content do you ever run into any issues of plagorism or copyright
violation? My website has a lot of completely unique
content I've either authored myself or outsourced but it appears a lot of it is popping it up all over the internet without
my authorization. Do you know any methods to help protect against content from
being ripped off? I'd genuinely appreciate it.
I do not know whether it's just me or if everyone
else experiencing problems with your blog. It appears as though some of the written text on your posts are running off the screen. Can someone
else please provide feedback and let me know if this is happening to them too?
This may be a problem with my web browser because I've had this happen previously.
And for the actually adventurous, contemplate, as I did, an evening
in Iglu-Dorf's snow resort There aren't any amenities — like
plumbing, central heat or beds not constructed from snow
— to speak of. But nothing beats sledding on a glacier at
night time, or the story you'll have on your pals.
Lastly you'll sail again from Mahmya Island to the marina the place you'll
be met and assisted, then transferred to your lodge in Hurghada free of
charge time at leisure and peaceful in a single day keep.
A number of the affords comprise of a flat off Rs.300 off on per day resort fees the
place as different affords embody attractive 30% promotional off if you find yourself reserving by means of the website, resembling
OYO for the primary time.
In case you elect to pay your account with credit card or different card
using a credit score cost facility, Hotel Rottnest reserves the proper
to charge a payment processing price with a purpose to cover its associated
administrative prices. Payments made by American Express and Diners will incur a
3% surcharge and MasterCard & Visa Card will incur a
Sail from Hurghada to Sharm on board the catamaran (1 hour) then drive by
jeep to the colored canyon then the rock of inscriptions (by jeep or trekking) drive to Wadi Gudir El Mat
and watch the Sinai night time sky.
obviously like your web site but you need to test the spelling on several of your posts.
Many of them are rife with spelling issues and I to find it
very troublesome to tell the truth however I
will surely come back again.
After I originally left a comment I appear to have clicked on the -Notify
me when new comments are added- checkbox and from now on every time a
comment is added I receive 4 emails with the same comment.
There has to be a means you are able to remove me from that service?
Please let me know if you're looking for a
author for your site. You have some really great articles and
I think I would be a good asset. If you ever want to take some
of the load off, I'd love to write some material for your
blog in exchange for a link back to mine. Please send
me an email if interested. Thank you!
I am just writing to make you know of the excellent experience
my girl gained studying yuor web blog. She came to understand numerous details, including how it
is like to possess an awesome giving mindset to get a number of people quite
simply fully understand certain hard to do matters.
You truly exceeded people's desires. Many thanks for presenting the important,
safe, edifying and as well as easy tips about the topic to Evelyn.
Y?u actuall? m?ke it seem s? easy wit? yo?r presentation b?t I find thks topic t?
be reall? somethinhg t??t I think ? wo?ld nev?r understand.
?t se?m? too complicated ?nd v?ry broad fo? m?.
I am looking forward f?r ?our next post, ? will try to ?et t?e
hang of ?t!
Y?u cou?d certainly ssee your enthusiasm within the article you w?ite.
The sector hopes forr mo?e passionate writers s?ch as y?u who a?en't afraiid
t? ?ay howw they belie??. At alll times follow ?our heart.
A pperson essentially lend a ?and to make severely articles ?'? ?tate.
T?at is the first time I frequented yo?r website ?age ?nd too th?s p?int?
I surprised ?ith t?e analysis y?u made to ma?e t??s actual p?t up extraordinary.
I do believe all the ideas you have offered for your post.
They are very convincing and will definitely work. Still,
the posts are too short for starters. May you please extend them a bit from subsequent time?
I am really loving the theme/design of your web site. Do
you ever run into any browser compatibility issues?
A handful of my blog audience have complained about my
blog not working correctly in Explorer but looks great in Safari.
Do you have any suggestions to help fix this issue?
W?at's G?ing down i'm nnew to this, I stumbled ?pon t?is I've found It positively useful and it has aided mme out loads.
? hope to g??e ? contribution & he?p ?ifferent ?sers like its helped me.
Hey t?ere! I ?now this is somewahat ?ff-topic howeve?
I nededed to ask. Does operating ? wel?-established blog ?uch
as yours require ? lot of work? I'm brand new to blogging ?owever I do ?rite in my journal daily.
I'd l?ke t? start a blog ?? I wil? b? ?ble to shate my personal
experience ?nd t?oughts online. Ple?se let mee know iif ??u ?ave
any k?nd of ideas ?r tips f?r brand new aspiring
bloggers. Ap?reciate ?t!
Just want to say your article is as amazing. The clearness to your post is simply great and that i can assume you
are an expert on this subject. Fine along with your
permission allow me to seize your RSS feed to stay updated with approaching post.
Thanks a million and please carry on the rewarding work.
I truly wanted to compose a word so as tto thank you for all thee fabulous suggestions you are showing here.
My extensive internet research has finally been honored
wioth really goood points to go over with my great friends.
I would mention that we site visitors actually are vvery much
endowed to dwell in a wonderful site with many special individuals with valuable concepts.
I feel truly lucky to have seen the site and look forward to some more
exciting moments reading here. Thanks a lot once again for a lot of things.
Do yyou ?ave a spam issue ?n this blog; I als? am ? blogger, and ? w?s wanting to
know y?ur situation; m?ny of u? ?ave developed s?me nice
procedures aand ?e ar? lo?king to exchange methods
?ith ?ther folks, ?e su?? t? shoot me an e-mail if ?nterested.
An impressive share! I've just forwarded this onto a friend who has been doing a little
research on this. And he in fact bought me dinner because I stumbled upon it for him...
lol. So allow me to reword this.... Thank YOU
for the meal!! But yeah, thanks for spending the time to discuss
this subject here on your internet site. sof?rszolgálat
yo? are in reality ? juyst ?ight webmaster. ?he site loading pace ?s incredible.
It kind ?f feels that you're d?ing anny distinctive trick.
?oreover, Thhe cont?nts are masterwork. ?ou've performed ? magnificent job ?n thi? topic!
Magnificent beat ! I would like to apprentice while you amend your site, how
could i subscribe for a blog site? The account helped me a acceptable deal.
I had been tiny bit acquainted of this your broadcast offered bright
Healing Techniques Check more info here: http://reiki-master.cf/
Health for some individuals nowadays is much more a question of the physical issue you don’t have than really being ‘completely’ healthy.
But true health is currently a lot more being
thought to be a lot more than having physical health.
Essentially, it means creating a balanced, natural life – or what could possibly be called a
healthy life, where physical, emotional, mental and spiritual health facets
are an issue in maintaining people all around health and wellbeing.
Have you ever heard about Qi Gong?
Qigong (also spelled Ch'i Kung) is really a potent system of healing as
well as medicine from China. It's the art and science employing breathing methods,
gentle movement, and meditation to wash, fortify, and circulate lifespan energy (qi).
How about binaural beats?
Binaural beats are sounds which are supposed to stimulate mental performance in specific ways.
These sounds have been claimed to aid induce relaxation, meditation,
creativity and also other desirable mental states
Do you realize anything about holographic
Holographic healing is often a system that can help
us to spot the unconscious patterns and power constrictions that underlie any conditions we might have within our lives.
Have you heard of magnetic therapy?
Physical impairment, like spinal cord injury (SCI), multiple sclerosis (MS), and post polio
syndrome, frequently aggravates plenty of ailments which might be amenable to magnetic therapy, a progressively popular alternative medicine mode.
What about ear candling?
Ear Candling can be a process that dates back as much as biblical times, when hollow reeds from
swamp regions were utilized as candles. It has been passed down for numerous generations by the North and South American natives, as well as the Egyptian, African,
Oriental and European cultures.
If you haven't been aware of some of these techniques you may be missing a large part of health and fitness.
There are even more than those mentioned here so it should be to your best interest to analyze
For more information on natural healing click link below :
The same substances that trigger your hay fever symptoms can also cause asthma signs and symptoms like breathlessness,
wheezing and chest tightness. In fact, leukotriene antagonists are
widely-used to treat both of these conditions. You cann now easily grab this solution online looking at the official website.
Actually allergic person's body sets llergens harmful foreign substances annd releases antibodies to combat them.
These plans are simply in connection with the sunflower seeds aand growing
on roadsides, vacaznt lot, along streams plus sunny areas.
On the other hand mediciness of the Polyene antifungal medicines hlp clear thrush and thin candida infections,
although some others are used to remove thee severe fungal problems.
All around the globe shortage of power is a common problem which is why individuals are looking
for some reliable and cheap electric source.
Many folks are using magnetic generators and the reason behind this is because get many advantages through
This generator is extremely simple to install in your house in a
limited place without disturbing the main settings of your house.
All you need is somewhat spare space to put in this. This will help you to reduce your
normal utility bill. You can use this being an energy supplier for many with the times so you don't need to switch returning to your old ways of power consumption. As soon as you start using this method
to obtain energy at your residence you will see an obvious saving with your income.
It doesn't produce any harmful gases that could damage environment.
In this generator, magnets will generate energy which can be usable in any condition. The cost of
having one of these power generator just isn't high at all.
It is the cheapest source of power generation in the modern era of technology.
The main thing on this generator is often a magnet which works
and also a small wheel.
As you realize that it must be without charge and there is no third party involved with installing this generator, so you won't need any
maintenance from some expert. You can maintain it by yourself by cleaning it at regular intervals.
This is the most ideal thing to set in your house as
being a electric source. It can retain the energy sufficient to handle every one of the appliances
in the house. A family of four to six is incredibly well suited
for this sort of energy generation device.
No harmful rays with out complex electric motors are participating here so you shouldn't be worried about the
security of your family and friends. Unlike other free electric generation devices, this does not need any solar
technology or wind. It will work on a unique without the supply of external
natural energy. Weather won't affect the performance or generation of energy from
this magnetic generator. As it doesn't rely on any external
source which means this will be an uninterrupted way to obtain power generation.
Check more info on site : http://hyperurl.co/zuz2o2
obviously like your web site but you need to tewt the spelling on quite a few of your posts.
Several of them are rife with spelling problems and I find it very botherssome
to tell the reality nevertheless I'll certainly come back again.
Wonderful .. ?'ll bookmark y?ur website andd take the feeds also?
I'm satisfieed to search out ? ?ot oof u?eful innfo ?ere in the post, we'd like develop m?re
techniques ?n th?? regard, thank you for sharing. . . . .
Howdy v?ry nice site!! ?an .. Beautiful .. Superb ..
I will bookmark y?ur website ?nd tak? the feeds additionally?
?'m glqd to seek o?t a lott of useful inf?rmation ?ere in th? submit, we'd lije wor? out extra techniques ?n this regard, t?ank yo? for sharing.
. . . . .
Magnificent beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog site?
The account helped me a acceptable deal. I had been a little
bit acquainted of this your broadcast offered bright clear concept
I do not een know how I stkpped up right here, however I assumed this post was once great.
I ddo not know who youu are however certainly you
are going to a well-known blogger in case you are not already ;) Cheers!
Aw, this was an incredibly good post. Spending somee time and actual effort to produce a
superb article... but what can I say... I procrastinate a whole lot and never manage to get
nearly anything done.
I can't imagine almost everything we get worried about in our lives matters.
Continuously invested in thinking about the several things that
people face just about every moment is without question undoubtedly necessary, as no other person will confront existence for us.
Personally I think that people must be more
mentally stable. Science is marvelous, however, a lot of whatever we think about
is so abstract. Having a cup of kava is a zen activity that brings one back to the present second.
We must be more in the here and now, without being stressed by existence and the episodes we deal
with every day.
I am thinking ?bout stocking t?e fo?lowing e-liquid label SugaSugar Coated Premium ?-Liquidsr Coated
?-Juice with my vape business (https://www.vapemeet.ca/). ?? this e-liquid w?ll-kno?n? Would you recommend it?
I do accept as true with all the ideas you've offered in your post.
They are veey convincing and can certainly work. Nonetheless, the poszts are vry short for newbies.
Could you plese lengthen them a bit from next time? Thanks for thee
The truth is all of one other slots are gone for good and tend to be replaced
over the years. A part of the game is watching
your opponents and their betting sequences. This has driven down rates of homes dramatically.
is a trusted QQ Texas hold'em Online as well as Bandar Ceme Online betting website that
offers online card video games such as Online Texas Hold'em, DominoQQ,
Capsa Online, Ceme Online, Ceme99, Online Gaming Online Online Poker Sites.
QQ Online Poker Ceme, the very best and best on-line poker
representative website with 24 hr IDN Online Online poker solution. For those of you
Lovers of the video game Online Online and that wish to play wagering Online Texas hold'em,
Online Ceme, Domino QQ, City Ceme, Online Betting, Bandar Capsa Online in 1 ID