Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bella fernandis
Adding .html extenstion to the blog post pages
February 14, 2013 1:28 AM
Answer

Bella fernandis

Rank: New Member

Posts: 15

Join Date: November 5, 2012

Recent Posts

My problem is i want to add '.html' extension to my every blog post. For example right now i have a blog post url 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay' and what i want is 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay.html'

I would be grateful if any one can help?
Gnaniyar Zubair
RE: Adding .html extenstion to the blog post pages
February 14, 2013 3:13 AM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 601

Join Date: December 19, 2007

Recent Posts

You cannot access the portal like .jsp or .html pages. Portal will be accessed by Portal pages only.

Here in your scenario, you can change custom url for blogs using Friendly URL concept.

- Gnaniyar Zubair
Bella fernandis
RE: Adding .html extenstion to the blog post pages
February 14, 2013 5:06 AM
Answer

Bella fernandis

Rank: New Member

Posts: 15

Join Date: November 5, 2012

Recent Posts

I have created a theme in which i am using blog portlet. So cant i access the inner pages of blogs with .html extension?? If not can you please guide me how to apply friendly url for this?
Gnaniyar Zubair
RE: Adding .html extenstion to the blog post pages
February 14, 2013 5:28 AM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 601

Join Date: December 19, 2007

Recent Posts

//I have created a theme in which i am using blog portlet.//

Blog portlet inside the Theme..? Sorry I got confused.

Did you mean to say that you have included the blog portlet inside the portal_normal.vm of your theme?

Also you cannot access any inner pages .jsp / .html like servlet application, here all the request is going through Portlet URLs which is controlled by portlet container.

Which blog page do you want to access..?
Hitoshi Ozawa
RE: Adding .html extenstion to the blog post pages
February 14, 2013 1:39 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

My problem is i want to add '.html' extension to my every blog post. For example right now i have a blog post url 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay' and what i want is 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay.html'


If you setup a http server in front of your liferay, you can just strip off the ".html" when redirecting to liferay pages. This will allow users to use .html extensions to access liferay pages.
Bella fernandis
RE: Adding .html extenstion to the blog post pages
February 15, 2013 9:23 PM
Answer

Bella fernandis

Rank: New Member

Posts: 15

Join Date: November 5, 2012

Recent Posts

Sorry for the inconvenience caused. But i have created a site have implemented the theme for the same. In the site i am using the blog portlet in the "blog" page. Now i have 4 blog entries in the blog. So now my question comes when i click on any of the blog post the url shows like this "localhost:8080/blog/-/blogs/creating-a-custom-portlet-in-liferay" but i want that to be displayed as "localhost:8080/blog/-/blogs/creating-a-custom-portlet-in-liferay.html". So want to add .html in the inner pages of blog. Hope you get the problem.
Bella fernandis
RE: Adding .html extenstion to the blog post pages
February 15, 2013 9:26 PM
Answer

Bella fernandis

Rank: New Member

Posts: 15

Join Date: November 5, 2012

Recent Posts

I have already added the .html extension to the pages of the site. But my question is how can i add the .html extension to the blog entries. Say for now i have a 4 blog posts so on clicking the same the url gets showed like this "localhost:8080/blog/-/blogs/creating-a-custom-portlet-in-liferay" and i want the url to be "www.indiesjxe.com/blog/-/blogs/creating-a-custom-portlet-in-liferay.html". Now help me for this problem.