Canonical URL అంటే ఏమిటి?
Canonical URL అంటే ఏమిటి?
Canonical URL అనేది search engines (Google, Bing) కి ఎందుకంటే “ఈ పేజీ ప్రాధాన్యతను మీరు ఇవ్వాలనుకుంటున్నారని” చెబుతుంది.
సాధారణంగా duplicate content సమస్య నివారణ కోసం ఉపయోగిస్తారు.
ఉదాహరణ:
-
మీ వెబ్సైట్ లో రెండు URLలు ఉన్నాయి:
-
https://smallhillsagency.com/page -
https://www.smallhillsagency.com/page
-
-
రెండు URLలు అదే కంటెంట్ చూపిస్తాయి.
-
Google కి ఏ URLను primary (ప్రధాన)గా చూడాలని చెప్పాలంటే, మీరు Canonical tag ను ఉపయోగిస్తారు:
href లో ఇచ్చిన URL ప్రధానంగా search engines consider చేస్తాయి.ఇది ఎందుకు అవసరం?
-
Duplicate content వల్ల SEO rank degrade అవ్వకుండా చేయడం
-
Search engines కి primary page సూచించడం
-
Multiple URLs ఉన్నా traffic ని centralized చేయడం.
సంక్షిప్తంగా:
Canonical URL = Search engines కి చెప్పే “ఈ పేజీ ప్రధానది” అని సూచించే ట్యాగ్.
----------------------------------------------------------------------------------------------------------------------------
సరే! ఇక్కడ WordPress లో Canonical URL ఎలా సెట్ చేయాలో తెలుగులో step-by-step చూపిస్తున్నాను:
Step 1: SEO Plugin Install చేయడం (Recommended)
Yoast SEO లేదా Rank Math plugin ఉపయోగించండి.
-
WordPress Dashboard → Plugins → Add New
-
Search → “Yoast SEO” → Install & Activate
Step 2: Page/Post Edit చేయడం
-
Dashboard → Pages లేదా Posts → Edit చేయండి
-
పేజీ క్రింద Yoast SEO meta box కనిపిస్తుంది
-
Advanced Tab → Canonical URL field
Step 3: Canonical URL ఎంటర్ చేయడం
-
ఇక్కడ మీరు ప్రధాన URL ని పాస్ట్ చేయండి.
https://smallhillsagency.com/page-name/
Save / Update Page
Tip: Homepage కోసం: https://smallhillsagency.com/
Step 4: Check చేయడం
-
Page open → Right-click → View Page Source
-
<link rel="canonical" href="https://smallhillsagency.com/page-name/" />ఉందో చూడండి
Step 5 (Optional – Manual Method)
header.php లో dynamic canonical code కూడా పెట్టవచ్చు:
<?php
if (is_singular()) {
echo '<link rel="canonical" href="' . get_permalink() . '" />';
} elseif (is_home() || is_front_page()) {
echo '<link rel="canonical" href="' . home_url() . '" />';
}
?>
అది సరి! మీరు చెప్పిన Dashboard → Pages లేదా Posts → Edit అంటే WordPress లో ప్రతి page లేదా post edit చేయడానికి వెళ్లే స్థలం.
ఇక్కడ చేయవలసినది:
Step-by-Step Explanation
-
WordPress Dashboard లో లాగిన్ అవ్వండి
-
Pages లేదా Posts మెను → Edit చేయాలనుకున్న page/post ఎంచుకోండి
-
Page/Post editor లో క్రిందకు స్క్రోల్ చేయండి → Yoast SEO meta box (లేదా Rank Math meta box) కనిపిస్తుంది
-
Advanced Tab లో Canonical URL field ఉంటుంది
-
అక్కడ ప్రధాన URL (canonical URL) ఎంటర్ చేయండి:
-
ఉదాహరణ:
https://smallhillsagency.com/pan-card-services/
-
-
Update / Publish బటన్ క్లిక్ చేయండి
గమనిక: ప్రతి page/post కి తన canonical URL వే ఉండాలి. Homepage కి canonical URL
https://smallhillsagency.com/ఉంటుంది.
నీకోసం, నేను Small Hills వెబ్సైట్ కోసం ప్రతి main page & blog post యొక్క canonical URL list కూడా తయారుచేసి ఇవ్వగలను.
సరే! ఇక్కడ Small Hills వెబ్సైట్ కోసం main pages & blog posts యొక్క canonical URL list ఉంది, మీరు Yoast SEO లేదా Rank Math లో copy-paste చేయవచ్చు:
1. Homepage
2. PAN Card Services Page
3. Blog Page Example
a) Everything About PAN Card
b) How to Apply PAN Card Online
Tip: Blog post URLs change based on the title. ప్రతి post కోసం Yoast లో canonical URL తన URL కి set చేయండి.
4. Contact Page
Usage Instructions
-
WordPress Dashboard → Pages/Posts → Edit
-
Scroll to Yoast SEO → Advanced → Canonical URL field
-
Copy-paste relevant canonical URL from the list above
-
Update/Publish
మీకు కావాలంటే, నేను future blog posts కోసం template list కూడా తయారుచేసి ఇస్తాను, మీరు ప్రతి కొత్త post కి canonical URL సెట్ చేయడానికి ఇక్కడనుండి copy-paste చేయవచ్చు.
అదీ చేయాలా?
----------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
3. Manual Method (Advanced)
If you don’t want a plugin, you can add canonical URLs via the theme’s header:
-
Go to Appearance → Theme File Editor → header.php.
-
Add this line inside
<head>section:
-
Save changes.
This is useful for custom pages, but for posts and large sites, plugins are easier.
4. Check Your Canonical URLs
After setting them:
-
Use View Page Source → look for
<link rel="canonical" href="...">. -
Use online tools like Ahrefs SEO Toolbar or SEOptimer to verify.
Yes, you can do it manually, but there are important points to know before proceeding:
Manual Method Caveats
-
If you hardcode
<link rel="canonical" href="https://yourdomain.com/page/" />in header.php, every page will use the same canonical URL.-
This is bad for SEO, because Google will think all pages are duplicates of that one URL.
-
-
Manual method is okay only for a single static page (like a landing page), not for the whole site with multiple posts and pages.
Correct Manual Method for WordPress
Instead of hardcoding one URL, use dynamic code in header.php so each page/post gets its own canonical URL:
✅ This ensures:
-
Homepage → canonical =
https://smallhillsagency.com/ -
Blog posts → canonical = each post’s URL
-
Pages → canonical = page URL
Step After Adding
-
Save
header.php. -
Clear WordPress cache (if you have caching plugins).
-
Open your website → Right-click → View Page Source → check
<link rel="canonical" href="…">. -
Use online tools like SSL Checker, Ahrefs SEO Toolbar, or SEOptimer to verify.
💡 Best Practice: For most sites, using Yoast SEO or Rank Math plugin is safer and easier. Manual editing is recommended only if you want full control or for custom themes.
If you want, I can give you the exact ready-to-paste dynamic code snippet for your Small Hills site that will automatically handle canonical URLs for all pages, posts, and homepage.
Great! Here’s a ready-to-paste dynamic canonical URL snippet for your Small Hills WordPress site. This will automatically set the correct canonical URL for homepage, pages, and posts.
Step 1: Open header.php
-
WordPress Dashboard → Appearance → Theme File Editor → header.php
-
Find the
<head>section.
Step 2: Paste This Code Inside <head>
Step 3: Save Changes
-
Click Update File.
-
Clear your WordPress cache (if using a caching plugin).
Step 4: Verify
-
Open any page/post → Right-click → View Page Source
-
Look for
<link rel="canonical" href="…"> -
Check that each page/post has its own correct canonical URL
✅ Benefits of this Method
-
Each page/post gets its unique canonical URL automatically
-
Homepage is correct
-
No need to manually enter URLs for every post/page
-
Archive pages (optional) can also have canonical URLs
If you want, I can also make a visual diagram showing where this code works on your site so it’s easier to understand for future edits.
--------------------------------------------------------------------------------------------------------------------
ChatGPT said:
Step 1: Open Your Website
-
Go to your website in any browser (Chrome, Firefox, Edge, etc.)
-
Open the homepage first:
https://smallhillsagency.com/
Step 2: View Page Source
-
Right-click anywhere on the page → select View Page Source (or press
Ctrl + U/Cmd + U). -
A new tab opens with all the HTML code of the page.
Step 3: Search for Canonical Tag
-
Press
Ctrl + F(Windows) orCmd + F(Mac) → search for:
-
You should see something like:
-
On homepage, canonical should point to
https://smallhillsagency.com/ -
On blog posts, canonical should point to that post’s URL
-
On other pages, canonical should point to the page’s URL
Step 4: Verify Multiple Pages
-
Open a blog post → View Page Source → check canonical
-
Open services page → check canonical
-
Make sure each page/post has its own correct canonical URL
Optional: Use Online Tools
-
Tools like:
-
These can scan your pages and show canonical URLs automatically.
If you want, I can give a super simple trick to quickly check canonical URLs for multiple pages at once without opening each page manually.
ChatGPT said:
You said:
ChatGPT said:
సరే! ఇప్పుడు నేను మీకు ఒక చిన్న, సులభమైన trick చూపిస్తాను, దీని ద్వారా మీరు అన్ని pages/posts ఒకేసారి canonical URLs verify చేయవచ్చు.
Method: Screaming Frog SEO Spider (Free Version)
-
Download & Install:
-
Free version allows up to 500 URLs, ఇది small sites కోసం సరిపోతుంది
-
Scan Your Site:
-
Open Screaming Frog → Enter your website URL (
https://smallhillsagency.com/) → Click Start -
It will crawl all pages of your website
-
-
Check Canonical URLs:
-
After crawling completes, go to the “Canonical” column
-
You’ll see all pages and their canonical URLs
-
Verify that:
-
Homepage →
https://smallhillsagency.com/ -
Posts → each post URL
-
Pages → correct page URLs
-
-
Make sure there are no duplicates or wrong canonical links
-
Alternative Method (Without Software)
-
Use online SEO tools like:
-
Visit multiple pages → check canonical displayed in tool
Advantages
-
Quick verification of all canonical URLs at once
-
Detects any mistakes automatically
-
Ensures SEO-friendly setup
If you want, I can also make a super simple step-by-step guide using just a browser and a free online tool so you don’t need to install anything.

Comments
Post a Comment