To start the Apache server:
sudo systemctl start apache2
To stop the Apache server:
sudo systemctl stop apache2
To stop and then start Apache
sudo systemctl restart apache2
To reload apache server to update the new configurations
import { NextSeo } from 'next-seo'; | |
const HomeSeo = () => ( | |
<> | |
<NextSeo | |
title="title" | |
description="Description about pages." | |
canonical="https://dhanar98.hashnode.dev/" | |
openGraph={{ | |
url: 'https://dhanar98.hashnode.dev/', |
import { ArticleJsonLd } from 'next-seo'; | |
const Article = () => ( | |
<> | |
<ArticleJsonLd | |
url="https://dhanar98.hashnode.dev/how-to-add-bootstrap-icons-in-next-js" | |
title="How to add bootstrap icons in next js" | |
images='https://example.com/photos/1x1/photo.jpg', | |
datePublished="2021-02-05T08:00:00+08:00" | |
dateModified="2021-02-05T09:00:00+08:00" |
import { FAQPageJsonLd } from 'next-seo'; | |
const Faq = () => ( | |
<> | |
<FAQPageJsonLd | |
mainEntity={[ | |
{ | |
questionName: 'What is Next-Seo', | |
acceptedAnswerText: 'Next-Seo is an NPM package or Plugin to manage all your SEO related features in Next.js App.', | |
}, |
import { SiteLinksSearchBoxJsonLd } from 'next-seo'; | |
const SiteLinksSearchBox = () => ( | |
<> | |
<SiteLinksSearchBoxJsonLd | |
url="https://dhanar98.hashnode.dev/" | |
potentialActions={[ | |
{ | |
target: 'https://dhanar98.hashnode.dev/search?q', | |
queryInput: 'search_term_string', |
To start the Apache server:
sudo systemctl start apache2
To stop the Apache server:
sudo systemctl stop apache2
To stop and then start Apache
sudo systemctl restart apache2
To reload apache server to update the new configurations
To Start the Nginx Server
sudo systemctl start nginx
To Stop the Nginx Server
sudo systemctl stop nginx
To Restart the Nginx Server
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/phalcon/public; #root_path | |
index index.php; | |
charset utf-8; | |
location / { | |
try_files $uri $uri/ /index.php?_url=$uri&$args; | |
} |
<?php | |
function ___wejns_wp_sitemap_fix($arg) { | |
$allowed = false; | |
$found = false; | |
foreach (headers_list() as $header) { | |
if (preg_match("/^content-type:\\s+(text\\/|application\\/((xhtml|atom|rss)\\+xml|xml))/i", $header)) { | |
$allowed = true; | |
} | |
if (preg_match("/^content-type:\\s+/i", $header)) { |
#!/bin/bash | |
# Step 1: Install Composer if not already installed | |
if ! [ -x "$(command -v composer)" ]; then | |
echo "Composer is not installed. Installing..." | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
php -r "unlink('composer-setup.php');" | |
fi |