I'm using the "/myqcs/rest/places/feed" URL to get all places, and I need to extract the friendly url name. I think the only way to do that is to look at the end of the "alternate" link.
For some places, the "alternate" link looks like this:
<link href="https://host/lotus/myquickr/driver-competitions-community" rel="alternate" type="application/atom+xml">
but for some, it looks like that:
<link href="https://host/lotus/myquickr/!ut/p/c4/04_SB8K8xLLM9MSSzPy8xBz9CP0os3hDC19DY0NfE0P3UBNHA09DY39nJz8Pz9AwU_2CbEdFALQNZ3I!/" rel="alternate" type="application/atom+xml">
So I can't get the friendly url from the second link, there's just a UID.
Why is that, and what can I do?
For a page to be accessible via a friendly URL both the page and all of its parent pages must have friendly names assigned to them. The friendly URL is made up of all the friendly names in the page hierarchy. e.g. for the URL my/nested/page we have 3 pages assigned friendly names 'my', 'nested' and 'page'. If the 'nested' page did not have a friendly name assigned to it then a friendly URL can not be generated for the 'page' page.
For the pages that just generate a UID verify they have friendly names for their full hierarchy.
If the pages have a full path of friendly names assigned then I think you will need to delve into the Portal Navigation Model SPI and generate your own output, see:
http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.ent.doc/wps/dgn_ptlnavig.html
http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/topic/com.ibm.wp.ent.doc/wps/nav_state_spi.html
I think I found the solution - when you are an admin, you can make make yourself a site manager, and then the friendly URL is used by Quickr, so it probably boils down to site membership.
Related
Recently I found a problem in my website, when I search a movie name in my site I found two link with the same title.
Second search result has following problems:
The link refers to "shahrzad" movie
You find "mad max" movie name in the url
You find "abad o yek rooz" movie name in the title
These data are about three different pages. I got confused what's going on here.
Recently I found some other link like this in google search
Wrong URL that google show
Correct URL that google show
Check head of your html page, maybe you use canonical tag in a wrong way, for example if you set another url to href attribute, you will have some serious SEO problem:
<link rel="canonical" href="<some_url>" />
For more information read this link.
I use sites that check out my website for SEO And I get the following message:
"his page title is not unique. Assign unique, descriptive TITLE tags and headings to every page."
accessbar.co.il
accessbar.co.il/index.aspx
But it should be the same page.
Your home page can be pulled up using two different URLs:
accessbar.co.il/
accessbar.co.il/index.aspx
They may be the same page to you, but to search engines they are two separate URLs and thus considered two separate pages. You should do one or more of the following:
do a 301 redirect from accessbar.co.il/index.aspx to accessbar.co.il/
put a canonical URL on accessbar.co.il/index.aspx pointing to accessbar.co.il/
I have a site that look like this:
Main page (index.php)
where a user can research a business.
To display result at page (search/index.php), the page url will look something like this:
/search/index.php?what=plumber&where=montreal&page=1
The page will generate dynamic link to access the business profile found. When you click on one of those links, you get here:
/entreprises/index.php?companyName=Something
How can I get the previous link to be indexed on Google?
This appears to be a good situation for the canonical URL tag. You'll want to specify a single URL for the page in question, and then other variations of that url getting to the same page (i.e. searches, tags, etc.) will refer to the stated canonical url as the actual url for SEO purposes.
Google has a detailed description of the tag here:
https://support.google.com/webmasters/answer/139394?hl=en
Example an online learning application that you want to share your results which are behind a logged in part of your site. So you add a public URL to your site for google to fetch the content (img, description, title):
data-href="http://www.example.com?result_id=24".
But then when someone views the post and sees the shared content and clicks the link to the site it goes to:
http://www.example.com?result_id=24
The only way I can think of is redirecting the user to http://www.example.com once they land on the shared URL.
Is there an official way or better way to do this?
Thanks
No, but there is a work around.
The URL that you share is used for both the snippet and place users are sent when they click.
However, you can put schema.org or OpenGraph markup on these pages that describes the content behind the login wall. This will allow you to specify a title, description and thumbnail. You can read more about configuring your snippet on Google Developers.
I want to use inside a Liferay structure the link-to-layout field,
<dynamic-element name="linktopage" type="link_to_layout" index-type="" />
In the template I use href="$linktopage.getURL()"
the link is working properly but the page url is /web/12/13
I need to have a SEO url with the page name.
Anyone know how to do that using link-to-layout and velocity variable?
Tnx
Sabrina
instead of $linktopage.getURL(), try $linktopage.getFriendlyURL(), this should give you the url with page names instead of layout ids.