feat(seo): add SEO controller for robots.txt and sitemap.xml
- Implemented SeoController with methods for serving robots.txt and sitemap.xml. - Updated robots.txt logic to disallow access to /admin and /api paths. - Enhanced meta tags and Open Graph data in home.html.twig for better SEO. - Added X-Robots-Tag header in SecurityHeadersSubscriber for /admin and /api routes.
This commit is contained in:
@@ -3,7 +3,60 @@
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>کلینیک پرو — نرمافزار مدیریت مطب</title>
|
||||
<title>کلینیک پرو — نرمافزار مدیریت مطب و نوبتدهی آنلاین</title>
|
||||
{% set base = app.request.schemeAndHttpHost %}
|
||||
<meta name="description" content="کلینیک پرو؛ نرمافزار مدیریت مطب و کلینیک — نوبتدهی آنلاین، پروندهی بیمار و حسابداری مطب، همه در یک پنل ساده و سریع."/>
|
||||
<link rel="canonical" href="{{ base }}/"/>
|
||||
<meta name="robots" content="index, follow, max-image-preview:large"/>
|
||||
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:site_name" content="کلینیک پرو"/>
|
||||
<meta property="og:title" content="کلینیک پرو — نرمافزار مدیریت مطب و نوبتدهی آنلاین"/>
|
||||
<meta property="og:description" content="نوبتدهی آنلاین، پروندهی بیمار و حساب مطب در یک پنل ساده و سریع."/>
|
||||
<meta property="og:url" content="{{ base }}/"/>
|
||||
<meta property="og:image" content="{{ base }}/icons/icon-512.png"/>
|
||||
<meta property="og:locale" content="fa_IR"/>
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image"/>
|
||||
<meta name="twitter:title" content="کلینیک پرو — نرمافزار مدیریت مطب و نوبتدهی آنلاین"/>
|
||||
<meta name="twitter:description" content="نوبتدهی آنلاین، پروندهی بیمار و حساب مطب در یک پنل ساده و سریع."/>
|
||||
<meta name="twitter:image" content="{{ base }}/icons/icon-512.png"/>
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "Organization",
|
||||
"@id": "{{ base }}/#org",
|
||||
"name": "کلینیک پرو",
|
||||
"url": "{{ base }}/",
|
||||
"logo": "{{ base }}/icons/icon-512.png",
|
||||
"contactPoint": {
|
||||
"@type": "ContactPoint",
|
||||
"telephone": "+98-74-91012178",
|
||||
"contactType": "customer support",
|
||||
"areaServed": "IR",
|
||||
"availableLanguage": "fa"
|
||||
},
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "یاسوج",
|
||||
"streetAddress": "مهریان، خیابان شهید ستاره شیرازی، خیابان امامزاده احمد، پلاک ۸",
|
||||
"addressCountry": "IR"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "{{ base }}/#website",
|
||||
"url": "{{ base }}/",
|
||||
"name": "کلینیک پرو",
|
||||
"inLanguage": "fa-IR",
|
||||
"publisher": { "@id": "{{ base }}/#org" }
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin/>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap"/>
|
||||
{{ encore_entry_link_tags('home') }}
|
||||
|
||||
Reference in New Issue
Block a user