What is the correct use of schema.org SiteNavigationElement?

If SiteNavigationElement is meant for the whole navigation (i.e., a navigation link list), your first example is correct. If SiteNavigationElement is meant for a single navigation entry (i.e., a link in the navigation link list), your second example is correct. I think Schema.org doesn’t unambiguously define which variant is meant, as they only say: A … Read more

Java code/library for generating slugs (for use in pretty URLs)

Normalize your string using canonical decomposition: private static final Pattern NONLATIN = Pattern.compile(“[^\\w-]”); private static final Pattern WHITESPACE = Pattern.compile(“[\\s]”); public static String toSlug(String input) { String nowhitespace = WHITESPACE.matcher(input).replaceAll(“-“); String normalized = Normalizer.normalize(nowhitespace, Form.NFD); String slug = NONLATIN.matcher(normalized).replaceAll(“”); return slug.toLowerCase(Locale.ENGLISH); } This is still a fairly naive process, though. It isn’t going to do … Read more

Domain IP address for www and non-www for Canonical URL

The mechanisms you describe (A and CNAME records vs. 301 redirects) are part of two different protocols (DNS and HTTP). A and CNAME records have nothing to do with which site your HTTP server serves for different requests. Let’s look at two different DNS configurations: Configuration 1 (CNAME record) Host | Type | Data —————–+——-+————- … Read more

Are search engines going to see my dynamically created content in Bootstrap tabs?

No, we (Google) won’t see the content behind tabs iff the content under the tab is dynamically generated (i.e. not just hidden). You can also see what we “see” using Fetch as Google in Search Console (former Webmaster Tools); read more about the feature in our post titled Rendering pages with Fetch as Google.

.htaccess 301 redirect of single page

RedirectMatch uses a regular expression that is matched against the URL path. And your regular expression /contact.php just means any URL path that contains /contact.php but not just any URL path that is exactly /contact.php. So use the anchors for the start and end of the string (^ and $): RedirectMatch 301 ^/contact\.php$ /contact-us.php

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)