Understanding On-Page SEO

On-page SEO refers to the practice of optimizing individual web pages to improve their search engine rankings and increase organic traffic. This improves the chance of conversions, which could mean selling products, recruiting distributors, or raising brand awareness. Unlike off-page SEO, which involves external activities like link building, on-page SEO focuses on elements directly within your website. By controlling these elements, content managers can significantly influence how search engines and AI understand and rank their content.

Liferay provides built-in features to help content managers implement on-page SEO best practices. This includes configuration options for friendly URLs, page tags, and more. This lesson explores each of these features and notes some considerations for leveraging them effectively.

Core Principles of On-Page SEO

Effective on-page SEO relies on several fundamental principles that guide how you structure and present content:

  • High-Quality, User-Focused Content: Create original, comprehensive, and helpful content that directly addresses user needs and demonstrates expertise, experience, authoritativeness, and trustworthiness (E-E-A-T).
  • Strategic Keywords: Integrate relevant keywords into your title tags, meta descriptions, headings (H1s, H2s), and body content to signal your page's relevance to search engines, while avoiding “keyword stuffing.”
  • Optimal User Experience: Ensure your site offers fast page speeds, is mobile-friendly, provides easy navigation, and features readable content to keep users engaged and satisfy search engine ranking factors.
  • Effective Internal Linking: Link relevant pages within your site using descriptive anchor text to distribute link equity and enhance content discoverability for both users and search engines.
  • Image Optimization: Optimize images with descriptive filenames, alt text, and compression to improve accessibility, search engine understanding, and page load times.
  • Clean URL Structure: Use concise, SEO-friendly URLs with relevant keywords, separated by hyphens, for better readability and search engine comprehension.
  • Schema Markup: Use structured data to give search engines additional context about your content, potentially enabling rich snippets in search results.
  • Up-To-Date Content: Regularly update and review your content to ensure accuracy, relevance, and comprehensiveness.

For each of these principles, understanding and satisfying user intent should be central to your on-page SEO strategy. By adhering to these principles, you can craft web pages that not only rank well but also genuinely serve your audience.

Friendly URLs

Friendly URLs are human-readable and search engine-friendly web addresses that improve site navigation and discoverability. Instead of long, complex URLs with numeric IDs or query strings (e.g., /page?id=123), friendly URLs use clear, descriptive words relevant to the page's content (e.g., /products/sunglasses). In Liferay, you can define the friendly URL for your site, individual pages, and various types of content.

  • Site's Friendly URL: Each site has a unique URL (e.g., https://localhost:8080/web/clarityvisionsolutions/). You can configure a different URL pattern (e.g., /web, /guest) or connect domain names using Virtual Hosts (e.g., www.clarityvisionsolutions.com). This is especially useful when providing multiple domains for different languages.
  • Page’s Friendly URL: By default, Liferay uses each page's name as its friendly URL, though you can configure this value at any time. When used effectively, these URLs can improve user understanding and provide key information for search engines. You can set new URLs, including different ones per language, and restore previous URLs. Options also allow for default query string parameters and controlling link behavior (e.g., opening in a new tab).
  • Friendly URL Separators: You can customize URL separators to improve URL readability and enhance SEO. This includes separators for different elements, such as categories, display page templates, products, web content articles, and more. For example, you could configure the separator for products to /product/ instead of the default separator /p/ (e.g., https://clarityvisionsolutions.com/product/item1).

Best practices involve using keywords relevant to the content, keeping URLs concise, and ensuring they are unique across your site. This improves readability for users, boosts keyword relevance for search engines, enhances crawl efficiency, and more.

When you update friendly URLs, it's vital to maintain link integrity. One way Liferay facilitates this is through friendly URL redirects. When you update the friendly URL for a page, blog, or document, Liferay automatically stores the old URLs. As long as the old URL remains in its history, Liferay redirects users to the latest version of the page or asset. This improves your site’s SEO and provides a more optimal user experience.

On-Page SEO Tags

Some page tags are critical for on-page SEO. They act as direct signals to search engines about the content of a web page, influencing how they understand, rank, and present it in search results. Liferay provides configuration options for these important meta tags:

  • HTML Title Tag: This tag specifies the page title that appears in browser tabs and as the main clickable headline in search engine results. This title is used by search engines for ranking and serves as the page's heading in search results, though it does not replace the page's name. These titles should be less than 60 characters and is localizable.

  • Description Meta Tag: This tag provides a short summary of the page content that often appears below the URL in search listings. These descriptions should be less than 155 characters and is localizable.

  • Robots Meta Tag: This tag controls how search engines crawl and index the page, enabling you to specify values like noindex (to prevent indexing) or nofollow (to prevent following links on the page).

  • Canonical URL Link Tag: A canonical URL is the preferred URL a search engine uses to represent a webpage, especially when multiple versions of the same or similar content exist. The default canonical URL is the page's main URL for its default language, but you can configure it per page and language.

  • Hreflang Tags: By default, Liferay DXP automatically populates page hreflang meta data with all available site languages. These tags are HTML attributes that identify the language and geographic region targeted by alternative versions of a page, helping search engines serve the correct localized content to users.

  • Custom Meta Tags: Liferay enables you to add custom <meta> tags to a page's <head> section. These tags describe page data and influence how it appears in contexts like search engine results and social media posts. You define them using property and content attributes for specific languages. Though keep in mind that custom <meta> tags are only included in page headers for unauthenticated users; they are not included for logged in users.

  • Keywords Meta Tag: You can define a list of keywords that users are likely to use when searching for your page’s content. You can also configure these keywords for each of the page’s languages. While these keywords do not directly improve indexing or ranking, they can help search engines understand your pages. Modern SEO strategies should focus more on other on-page elements like title tags, meta descriptions, header tags, and the quality and relevance of website content.

Effectively configuring these tags can help ensure search engines accurately interpret your content and display it optimally in search results. Once configured, you can preview how your page will appear in search engine results pages (SERP).

SEO settings listed in the Liferay UI.
 

Other Relevant Elements

Liferay offers additional features and page configuration options that contribute to your site's SEO performance and overall discoverability.

  • Sitemap Options: You can determine whether to include a page in the sitemap.xml file. This informs search engines about the page's existence and provides metadata like the page’s priority (indicating its importance relative to other pages) and change frequency (how often the page is updated).

  • Open Graph Meta Tags: This Internet protocol standardizes previews of site content when shared on social media platforms (e.g., Twitter, Facebook, LinkedIn). It works by embedding structured data as meta tags in page headers. While not a direct ranking factor, Open Graph tags are important for off-page SEO (e.g., improving social sharing, engagement, and click-through rates, which can lead to increased traffic and backlinks).

  • Redirects and 404 Management: Liferay provides URL management tools to handle redirects, prevent broken links, and inform search engines when a page's URL has changed. For example, you can configure permanent (301) or temporary (302) URL redirects. Additionally, you can implement pattern and alias redirects and track 404 errors. To learn more about Liferay redirects and related features, see Managing Site URLs.

When strategically configured, these elements can further enhance your site's visibility and relevant traffic. Also, whenever you configure Open Graph tags in Liferay, you can preview how the page will appear on platforms that support the protocol.

Available Open Graph settings in the Liferay UI.
 

Applying AI-Friendly SEO Strategies

Traditional SEO is rapidly evolving to optimize content for AI bots, voice assistants, and generative AI models. To adapt to this new paradigm, you can implement two optimization strategies:

  • AEO (Answer Engine Optimization): Structure on-page content so it can be extracted as a direct, unique answer. The goal is to secure spaces like Google’s featured snippets or the quick answers provided by voice assistants.

  • GEO (Generative Engine Optimization): Optimize content so that language models (e.g., ChatGPT, Claude, Gemini) cite and mention your brand when generating complex, synthesized responses. The goal is to make AI recognize and use your brand as a reliable source.

To ensure AI discovers and utilizes your content, you can use Liferay’s SEO tools and other page-building features (e.g., fragments, client extensions) to make necessary structural changes. For example, you can explicitly allow AI crawlers via the Robots meta tag and use fragments to apply AI-friendly best practices (e.g., adding a “Key Takeaways” section).

While these strategies currently require some technical knowledge, Liferay is evolving to provide these AI-focused SEO features natively in the future.

Conclusion

Mastering on-page SEO is fundamental for improving search engine rankings and driving organic traffic to your content. By effectively leveraging Liferay's built-in features for friendly URLs, page tags, and other relevant elements, content managers can significantly enhance their site's discoverability.

Next, you’ll apply these principles to Clarity’s website.

Loading Knowledge