Category Archives: Homeschool

How To Prevent Hotlinking On Website Files Using cPanel?

Protecting your website’s files from hotlinking is essential for preserving bandwidth and securing your content, and cPanel makes this process straightforward. Hotlinking occurs when other sites link directly to your images, videos, or other files, causing them to load on external pages without your permission, which can drain resources and slow down your site.

With cPanel’s built-in hotlink protection, you can quickly set restrictions to block unauthorized websites from accessing and displaying your files. This guide will walk you through the steps to enable hotlink prevention on cPanel, helping you safeguard your content, reduce bandwidth theft, and maintain optimal website performance.

Start by logging into your Sangkrit.net account and then launch your hosting’s cPanel

Scroll down to ‘Security’ section and click ‘HotLink Protection’ icon.

Hotlinks Protection

This will direct you to a page showing you option for enabling and disabling hot links. By default it provides you a list including all domains and URLs of your websites where you can turn on hotlinking.

Hotlinks Protection 2

The list is editable, you can manually include or exclude domains and URLs to prevent hot links. It also provides you a text area to block access for selected file types and extensions like .jpg, .png etc.

The last text field allows you to redirect hotlink requests to a custom URL, may be your website’s home page or whatever you like.

If you are running your website over WordPress then you may also try Hotlink Protection plugin which is an easy step script coded to stop others from stealing images from your website. Another plugin called Hot Link Prevention offers you a tick-mark option to prevent images from hotlinking.

How To Configure ModSecurity To Protect Website From Cyber Attacks?

ModSecurity is a robust open-source web application firewall (WAF) designed to detect and prevent attacks on websites by monitoring and filtering HTTP traffic.

It acts as a layer of defense, helping to guard against security threats such as SQL injections, cross-site scripting (XSS), and other common vulnerabilities in web applications. By blocking or logging malicious requests, ModSecurity enhances your website’s security and helps protect your server from being compromised.

In cPanel, ModSecurity can be easily configured to meet the security needs of your site. Here’s a step-by-step guide on how to configure it:

Step-1 Log in to cPanel

Start by accessing your cPanel account.

Step-2 Locate ModSecurity

In the Security section, find and click on the ModSecurity icon. This will bring up the ModSecurity configuration panel.

Step-3 Enable Or Disable ModSecurity

ModSecurity can be enabled or disabled for individual domains on your account. Choose the domain(s) you want to configure. By default, enabling ModSecurity offers a baseline level of protection.

Step-4 Configure Rules

Many cPanel providers allow you to configure specific security rules for ModSecurity, either by uploading custom rule sets or by using pre-configured rules. If you have the option to edit or add rules, you can tailor ModSecurity’s responses to match your security needs, increasing or decreasing the sensitivity as needed.

Step-5 Test Your Configuration

Once ModSecurity is configured, it’s essential to test your website for functionality. Sometimes, ModSecurity rules can be too strict, inadvertently blocking legitimate traffic. Check your site thoroughly to ensure that all pages load correctly and that no critical functions are affected.

You may also ModSecurity logs, they can provide insights into blocked requests and potential threats. Regularly reviewing these logs will help you understand the types of attacks your site is facing, allowing you to adjust rules or security levels if necessary.

    By configuring ModSecurity through cPanel, you’re adding an essential layer of security to your website, protecting it from many of the most common web-based attacks.

    How To Adjust PHP Memory Limit For Better Website Performance?

    People may need to set or increase the amount of memory PHP scripts can consume in various situations. Running complex applications like WordPress, Magento, Joomla, or Drupal often requires higher memory limits because these platforms handle multiple functions, plugins, and themes. This increased demand can quickly exceed default limits, leading to errors or incomplete processes.

    Common Errors Due To Low PHP Memory

    When PHP memory is low, various errors can arise, affecting website functionality. A common error is the “Allowed memory size exhausted” message, indicating that a script needs more memory than the allocated limit. This can cause pages to load partially or fail altogether, resulting in broken forms, incomplete image uploads, or failed processing of large files.

    Low memory also often leads to “500 Internal Server Error” messages, as insufficient memory prevents scripts from running properly. Complex plugins or themes, especially on WordPress, may stop working or create blank pages due to memory constraints. Increasing the memory limit can resolve these issues, ensuring smoother site performance and fewer interruptions.

    PHP memory error often occurs when:

    • A large script or complex function runs.
    • A low PHP memory limit is set on the server.
    • A website has too many active plugins or heavy themes.
    • Server settings have insufficient memory allocation by default.

    To set the maximum amount of memory that PHP scripts can consume, you’ll need to adjust the memory_limit setting in the MultiPHP INI Editor in cPanel. Here’s how:

    To quick fix a PHP memory error via cPanel:

    1. Login to cPanel – Use your credentials to access your cPanel dashboard.
    2. Locate the “MultiPHP INI Editor” – This tool allows you to modify PHP configuration.
    3. Select Your Domain – Choose the domain where the error occurs.
    4. Adjust PHP Memory Limit – Find the memory_limit setting and increase the value (e.g., 256M or 512M).
    5. Save Changes – Click “Apply” or “Save” to update the configuration.

    Now check if the error is resolved. Simply refresh your website to confirm the issue is fixed.

    The Step-By-Step Guide To Adjust PHP Memory Limit:

    Step-1 Log in to cPanel: Access your cPanel.

    Step-2 Open MultiPHP INI Editor: Scroll down to the Software section and click on MultiPHP INI Editor.

    Step-3 Choose a Location: You’ll see two options to configure PHP settings:

    • Basic Mode: Provides a user-friendly interface to select the PHP directives.
    • Editor Mode: Lets you directly edit the php.ini file for finer control.

    For most users, Basic Mode is easier to work with.

    Step-4 Select the Domain: From the drop-down menu, select the domain or location you want to apply the memory limit change to.

    Step-5 Find the memory_limit Setting: In the list of settings, locate the memory_limit option.

    Step-6 Adjust the Memory Limit: Enter your desired memory limit in MB. For example: 128M (128 megabytes), 256M, or even 512M for resource-intensive applications.

    Be sure to enter a value within the limits allowed by your hosting provider.

    Step-7 Save Changes: Click Apply or Save at the bottom of the page to confirm the new memory limit.

    When You Need To Adjust The PHP Memory Usage?

    Uploading large files is another common reason for adjusting memory. When users upload bigger files, such as images or videos, PHP scripts use more memory to process these uploads. If the limit is too low, uploads may fail or time out, resulting in a poor user experience.

    For data-intensive scripts, like those managing extensive database queries, complex arrays, or calculations, having enough memory is crucial. Large data sets or intensive processes need more memory to run smoothly; otherwise, they can cause errors or stall during execution.

    People may also notice “out of memory” errors appearing in logs or on their sites during specific tasks. Increasing the memory limit helps prevent these issues, ensuring the site functions reliably.

    Image and video processing is a common feature on many websites, especially for media-heavy applications. Resizing, cropping, or editing media requires significant memory resources, so sites that handle many images or videos need higher limits to process them efficiently.

    Lastly, improving site performance and stability is often a motivation for setting a higher memory limit. If a site experiences lags during peak traffic or intensive tasks, increasing the PHP memory can help manage this load, offering a smoother experience for users.

    How To Restrict File Upload Size On Your Website Using cPanel?

    cPanel provides a straightforward way to restrict image upload sizes to control file storage and enhance website performance through the PHP.ini Manager, which allows you to adjust the upload file size limits.

    If you’re managing a WordPress site, you can do same with the help of plugin as we have discussed in this lesson.

    Here’s a step-by-step guide to setting upload size restrictions using the PHP.ini Manager in cPanel.

    Step 1: Log In to cPanel

    Access your website’s cPanel.

    Step 2: Access The PHP.ini Manager

    In the Software section, look for MultiPHP INI Editor. This is where you can modify PHP settings for different domains.

    Click on MultiPHP INI Editor to open the configuration tool.

      Step 3: Select The Domain

      Choose the domain you want to configure from the dropdown menu. If you want these settings to apply to all sites on the server, you may need to select the root directory or the specific domain directory.

        Step 4: Adjust The Upload Size Limits

        In the PHP configuration editor, locate the following settings to control the file upload size:

        • upload_max_filesize: This setting defines the maximum size of each file that can be uploaded. Set it to the desired limit for image uploads (e.g., 2M for 2 megabytes).
        • post_max_size: This controls the maximum size for all POST data. Make sure it’s equal to or larger than upload_max_filesize to avoid upload issues.
        • max_execution_time: This optional setting adjusts the time allowed for uploads. You may increase it slightly if users face issues with large files timing out.

        Simply update these values:

        • upload_max_filesize = 2M
        • post_max_size = 2M
        • max_execution_time = 300

        After values are updated, Save it to confirm the changes.

          Step 5: Test The New Settings
          1. Go to your website and try uploading an image file that exceeds the new limit to ensure the restriction is working.
          2. If the upload fails with a size-related error, the configuration is correctly set.
          Other Tips For Optimizing Image Upload Sizes
          • Compress Images Before Uploading: Encourage users to compress images for faster site performance.
          • Use Image Optimization Plugins: For WordPress, plugins like Smush or Imagify can further optimize image sizes automatically.

          By using the PHP.ini Manager in cPanel to restrict image upload sizes is a practical way to control file sizes and improve your site’s efficiency. By following these steps, you can ensure your site remains fast and responsive even with multiple image uploads.

          How To Restrict Image Upload Size In WordPress?

          In a multi-author WordPress blog, maintaining image quality and controlling image file sizes are crucial for ensuring optimal website performance. Unoptimized images can slow down your site, especially if contributors don’t resize or compress their images before uploading.

          Although WordPress sets a general file upload limit, it may still allow images that are too large, potentially impacting your website’s loading time. This is where the Restrict Image Upload Size plugin can help.

          Plugin To Restrict Image Upload Size

          The Restrict Image Upload Size plugin allows WordPress administrators to set specific upload size limits just for images, ensuring consistent quality and faster site performance. It provides custom settings to restrict the minimum width and height of uploaded images, making it an ideal solution for e-commerce sites, portfolios, and multi-author blogs.

          The plugin offers several features tailored for image management on WordPress:

          • Set Minimum Width and Height: Administrators can set minimum width and height requirements for uploaded images. This helps prevent users from uploading low-resolution images that may not fit your website’s design standards.
          • Custom Error Messages: The plugin lets you set specific error messages that will notify users if their uploads don’t meet the required dimensions.
          • User-Friendly Interface: The settings are easily accessible from the WordPress dashboard, specifically from the Media Settings page, making it simple to configure and manage.
          • Selective Size Restriction: Unlike WordPress’s general upload limit, this plugin restricts image sizes without affecting other file formats like audio and video. This selective restriction allows flexibility in uploading large multimedia files when needed.
          Step-By-Step Guide To Restrict Image Upload Size

          To restrict image upload size with this plugin, follow these steps:

          Step 1. Install and Activate the Plugin

          Go to the Plugins section in your WordPress dashboard, click Add New and search for Restrict Image Upload Size. Install and activate the plugin.

          Step 2. Configure Settings

          After activation, go to Settings > Media in your WordPress dashboard.

          You’ll find new options to set minimum width and height requirements for images. Enter your preferred values for these dimensions based on your website’s design needs.

          Step 3. Customize Error Messages

          In the same settings page, you can also customize the error message that users will see if their image upload doesn’t meet the specified dimensions.

          This makes it easier to guide users on the required image quality standards for your site.

          Why Use the “Restrict Image Upload Size” Plugin?

          This plugin is particularly beneficial for:

          • Maintaining Quality Standards: Ensuring all uploaded images meet specific quality standards helps maintain visual consistency across your site.
          • Improving Website Performance: By restricting large image uploads, you reduce the chances of slowing down your website, which can improve user experience and SEO rankings.
          • Easing Site Management: For multi-author blogs, the plugin helps administrators manage image uploads more effectively, minimizing issues related to oversized images.
          The Plugin Is Ideal For
          • E-commerce Sites: High-quality images are crucial for product pages, and this plugin ensures image uploads meet quality standards.
          • Portfolio Websites: Artists, photographers, and designers can maintain image quality without risking oversized files that might affect loading speed.
          • Multi-Author Blogs: For blogs with multiple contributors, the plugin ensures all authors upload images that align with the site’s standards, enhancing the overall look and feel of the blog.

          The Restrict Image Upload Size plugin is an excellent tool for WordPress site administrators who want to maintain control over image uploads. By setting minimum width and height requirements, you ensure images meet a consistent standard and don’t negatively impact site performance. This plugin makes image management easy, efficient, and SEO-friendly, ultimately helping you deliver a high-quality user experience on your WordPress website.

          If you use a framework other than WordPress then you can also restrict image or any file upload size using cPanel.

          Streamline WordPress Tasks With Fast Admin Menu Search

          Navigating through WordPress can become quite a task, especially for administrators managing complex sites or those with numerous plugins. The default WordPress admin menu, though functional, doesn’t always facilitate quick access to the various menus and sub-items that an admin may need to access frequently. This is where the Admin Menu Search (AMS) plugin steps in, revolutionizing the admin experience with its intuitive search functionality that simplifies and accelerates menu navigation.

          In this article, we explore the key features of the AMS plugin, its benefits, and how it enhances the efficiency of WordPress administration.

          Core Benefits Of The Admin Menu Search

          Admin Menu Search (AMS) is crafted to provide a seamless and accessible search experience directly from the WordPress admin area. Here’s a closer look at its defining features:

          Quick Search of Menu and Sub-Menu Items

          AMS enables administrators to search through both menu items and their sub-items with ease. No longer do users need to hunt down specific menu sections; simply entering keywords relevant to the desired menu item will display the relevant options instantly. This is particularly useful for WordPress sites with a significant number of plugins, each adding its own menu or sub-menu items.

          Support for Multiple Keyboard Layouts

          One of the standout features of AMS is its ability to accommodate different keyboard layouts. Often, users may inadvertently leave a different language or keyboard layout active, which can lead to typing errors or the need to switch layouts. With AMS, administrators can enter text in English regardless of the current keyboard setting, and the plugin will still deliver the desired results accurately. This feature is especially beneficial for multilingual sites or users who toggle between layouts frequently.

          Easy Access with a Fixed Admin Bar Search Field

          AMS adds a dedicated search field at the very top of the WordPress admin bar, making it a permanent feature that is always accessible. This field remains visible regardless of which admin page is open, ensuring that users can perform quick searches at any time without navigating away from their current page. This positioning is invaluable for busy administrators who often need to multi-task and require prompt access to different site settings.

          Keyboard Shortcuts for Efficiency

          For power users who prefer to work with keyboard shortcuts, AMS offers a unique advantage. By pressing the slash key (“/”), users can instantly focus on the search field, bypassing the need to click on the field manually. This shortcut is a great time-saver, allowing users to initiate searches within seconds.

          Additionally, AMS includes a shortcut to clear the search field instantly. By pressing the “Esc” key when the field is in focus, the input is erased, restoring the display of all menu items. This small yet effective shortcut eliminates the need for repetitive backspacing or manually clearing the field, further enhancing workflow.

          How To Use Admin Menu Search?

          Getting started with AMS is straightforward. After installation, the plugin automatically adds the search field to the admin bar. The intuitive placement and ease of use mean there is no need for a steep learning curve. Admins can simply start typing in the search field or use the shortcuts to immediately begin benefiting from the plugin’s functionality.

          Here’s a quick setup guide:

          1. Install and Activate AMS – Simply install the AMS plugin through the WordPress dashboard or by uploading it manually. Once activated, the search field will appear at the top of the admin bar.
          2. Start Searching – Use the search field to enter keywords or menu items as needed. The results will be displayed in real-time, allowing for quick access.
          3. Use the Keyboard Shortcuts – Press “/” to focus on the search field and “Esc” to clear it, making navigation even faster.

          The AMS plugin brings a range of benefits to WordPress administrators, whether managing single or multisite installations. Here’s how AMS can positively impact your site administration:

          Enhanced Efficiency and Productivity

          The AMS plugin significantly reduces the time spent navigating the admin dashboard. With its quick search functionality, administrators can locate and access specific menu items in moments. This efficiency is especially valuable when working under time constraints or handling urgent updates, allowing admins to perform their tasks without unnecessary delays.

          User-Friendly Interface and Accessibility

          AMS offers a clean, unobtrusive addition to the admin area with a user-friendly interface. The search field’s placement on the admin bar is convenient and ensures that it doesn’t interfere with the existing menu structure. For new or less experienced WordPress users, this accessibility makes the admin experience more intuitive and less overwhelming.

          Error Reduction with Keyboard Layout Flexibility

          Typing errors due to incorrect keyboard layouts can be frustrating, particularly for users managing multilingual content or switching between languages. AMS’s compatibility with various keyboard layouts minimizes these errors, ensuring accurate search results regardless of the layout. This is particularly beneficial for administrators in non-English-speaking regions or those who manage international websites.

          Improved Workflow for Power Users

          For administrators accustomed to using keyboard shortcuts, AMS offers a faster, smoother workflow. By incorporating the slash (“/”) shortcut for focusing on the search field and the Esc key to clear it, the plugin provides an optimized experience for power users. These shortcuts allow admins to maintain a faster pace, improving productivity in day-to-day tasks.

          Finally, Admin Menu Search (AMS) is a valuable addition to any WordPress admin’s toolkit. By simplifying the search and navigation of menu items, providing flexibility with keyboard layouts, and offering helpful shortcuts, AMS significantly enhances the admin experience. This plugin not only saves time but also reduces the potential for error, ensuring a more streamlined and efficient workflow for WordPress administrators. Whether managing a single site or a network of sites, AMS can transform how you interact with the WordPress dashboard, making it an indispensable tool for modern WordPress site management.

          How To Reduce Website’s Image Load Times Using cPanel?

          Image optimization is the process of reducing an image’s file size without compromising its quality, enabling faster load times and improved site performance.

          This is achieved by compressing images, choosing the right file formats (like JPEG for photos and PNG for graphics), and adjusting dimensions to fit the website’s design requirements. Optimized images lead to quicker page loads, lower bandwidth usage, and better SEO rankings, enhancing user experience and site functionality across devices.

          Optimizing images is crucial to improve site load times and overall user experience. Here’s a step-by-step guide to image compression for Faster loading directly from your cPanel.

          Step 1: Log in to Your cPanel Account

          Begin by logging into your cPanel account. You’ll need access to the Images section, so ensure you’re using an account with these permissions. Once you’re on the cPanel dashboard, locate the Images icon under the Files section.

          Step 2: Access the Optimize Website Tool

          In the Images section, look for the Optimize Website tool. This tool allows you to compress and optimize images on your site with ease. Click on it to open the options for compressing images and optimizing how they load.

          Step 3: Choose Your Optimization Level

          The Optimize Website tool provides a few different options for optimization. You’ll generally see:

          • Compress All Content: This option compresses all content on your website, including images, HTML, and scripts, which may be too aggressive for some sites.
          • Compress Static Content: This choice compresses images and other static files, leaving dynamic content untouched. This option is often recommended as it reduces the size of files without altering user-generated or dynamically generated pages.

          Select the option that best suits your needs and proceed by clicking the appropriate choice.

          Step 4: Confirm Your Selection

          After you choose your optimization level, you’ll need to confirm your selection. cPanel will apply the settings to compress your images as specified. At this point, the tool will reduce the file size of your images, helping your site load faster without any noticeable quality loss for most users.

          Step 5: Review and Test Your Website

          Once the compression is complete, it’s a good idea to test your website’s load time to observe the improvements. You can use online tools like Google PageSpeed Insights or GTmetrix to see how much your load times have improved. Testing ensures that the compression has enhanced your site’s performance effectively.

          By following these steps, you can easily compress and optimize your website’s images from cPanel, improving load times and offering a smoother experience for your users.

          How To Schedule WordPress Menus With Expiration Dates?

          The Menu Expiration Control plugin is an essential tool for WordPress users looking to add flexibility and control over their website’s menu display. With this plugin, you can set specific start and expiration dates for each menu item, making it perfect for temporary promotions, seasonal offerings, or event-based menu items.

          Whether it’s a limited-time offer, a seasonal special, or a date-specific announcement, this plugin provides a seamless way to ensure your menus are always relevant to your audience.

          Why Use the Menu Expiration Control Plugin?

          The Menu Expiration Control plugin allows you to manage menu items more dynamically by setting start and expiration dates. Here’s what makes this plugin valuable:

          • Control Visibility of Menu Items: Show or hide menu items based on specific timeframes, ensuring that your navigation is always up-to-date.
          • Perfect for Promotions & Events: Easily schedule when a promotional link or event announcement should appear or disappear from your menu.
          • Seasonal Menus Made Easy: Set visibility dates for seasonal offerings or limited-time items, such as holiday promotions or special menus.
          Key Features Of Menu Expiration Control Plugin:
          • Date-Specific Display: Choose exact dates for each menu item to be visible, ideal for items that should appear only during particular times.
          • Customizable Date Format: The date format is set as YYYY-MM-DD by default, but advanced users can modify this directly within the plugin’s code.
          • User-Friendly Interface: Manage dates right from the ‘Appearance’ > ‘Menus’ section in the WordPress admin panel, without the need for coding skills.

          This plugin is especially useful in scenarios such as:

          • Seasonal Campaigns: Automate the display of holiday-themed menu items, like Christmas sales, New Year offers, or Halloween specials.
          • Limited-Time Promotions: Set menu items for flash sales or exclusive discounts, ensuring they only appear for the duration of the campaign.
          • Event Announcements: Control visibility of links for upcoming events, webinars, or local gatherings without manually updating the menu.
          How To Use the Menu Expiration Control Plugin?

          Follow these simple steps to install and start using the Menu Expiration Control plugin:

          1. Install and Activate the Menu Expiration Control plugin.
          2. Navigate to Appearance -> Menus in the WordPress admin area.
          3. Open any menu for editing or select Create a new menu at the top of the page
          4. Enter a name for your new menu in the Menu Name box and click the Create Menu button.
          5. Locate the left pane to select the pages, categories, custom links etc that you want to add to your menu.
          6. Click the Add to Menu button located at the bottom of this pane to add your selection(s) to the menu.
          7. Set specific start and expiration dates to any menu item for customized display.
          8. Click the Save Menu button.

          By using Menu Expiration Control not only enhances your website’s functionality but also improves user experience by ensuring visitors see only relevant, time-specific menu items. By keeping your site’s navigation current, you provide a more organized, user-friendly experience that is sure to keep visitors engaged.

          With its easy setup and powerful functionality, the Menu Expiration Control plugin is a must-have for any WordPress site looking to optimize their menus with time-sensitive content.

          How To Tag Posts For SEO, Image Updates & Analysis By Authors In WordPress?

          You can enhance WordPress editing process and work flow by tagging the post for advancing SEO, image updates, and further team reviews on your WordPress site.

          Managing content in WordPress can become a daunting task, especially when you have numerous posts, pages, or custom post types. The ‘Internal Tags‘ plugin simplifies this process by allowing you to create internal tags, making content organization and workflow management much easier. This plugin enables you to set internal tags on various content types, providing a powerful tool to categorize and manage your posts directly from the WordPress dashboard.

          What Are Internal Tags?

          Internal tags are customizable labels that can be applied to posts, pages, or custom post types within the WordPress dashboard. Unlike public-facing tags used for categorizing content on the front end, internal tags are designed specifically for backend management.

          For instance, they can help you track content that requires attention from a specific team, needs additional media, or is pending SEO optimization.

          Key Features of the ‘Internal Tags’ Plugin

          The plugin offers a wide range of features aimed at enhancing your content management experience:

          1. Unlimited Internal Tags: There is no limit to the number of internal tags you can create. You can define as many tags as you need to suit your content management workflow.
          2. Customizable Tag Names, Descriptions, and Colors: Each tag can be given a unique name, description, and color for easy identification. Tags can be color-coded to provide visual cues at a glance.
          3. Hierarchical Tag Structure: You can create parent-child relationships among tags, allowing for a more organized structure and a better way to segment your content.
          4. Visible Tags in the Posts List: Once a tag is set, it appears alongside your posts in the WordPress dashboard, giving you a clear overview of the status of each post.
          5. Filter Posts by Tags: The plugin allows you to filter the list of posts based on internal tags, making it easier to find content that requires action.
          6. Bulk Edit and Quick Edit Options: Internal tags can be quickly set or modified for multiple posts using bulk editing or the quick edit function.
          7. Enable on Chosen Post Types: You have the flexibility to enable internal tags on posts, pages, or custom post types, depending on your requirements.
          8. User Role Capabilities: You can choose which user roles can view and manage internal tags, ensuring that only authorized users have access.
          9. Display Options: The tags can be displayed in either horizontal or vertical modes, with an optional compact display mode for a cleaner interface.
          10. Default Tag Colors: You can set default colors for tags that do not have a specific color assigned.

          How to Use the ‘Internal Tags’ Plugin

          To get started, install the ‘Internal Tags’ plugin and navigate to Settings > Internal Tags in the WordPress dashboard. Here, you can choose which post types will utilize internal tags.

          After enabling the plugin for the desired content types, a new Internal Tags menu will appear under the post types menu. Creating a new tag is simple: just click on the menu, add the tag details, and configure its color and description.

          Once the tags are set up, they can be applied to posts during creation or editing. The tags will be displayed on the right side of the editor, and you can view or filter posts based on these tags in the dashboard.

          The ‘Internal Tags’ plugin is a valuable tool for WordPress users looking to streamline content management and improve workflow efficiency. With its customizable options and easy integration, it enhances the organization of your website’s content like never before.

          How To Enable mod_expires With WordPress Plugins For A Better Site Performance?

          If you’re using WordPress, you can enable mod_expires and set up caching rules easily using plugins. This method doesn’t require manual server configuration and can help you boost your website’s speed.

          Several WordPress plugins can enable mod_expires and set up caching rules. Popular options include: WP Super Cache, W3 Total Cache, WP Rocket, and Hummingbird. For this lesson, let’s focus on W3 Total Cache and WP Super Cache, as they are free and commonly used.

          To enable mod_expires through WordPress plugins, you can set up caching rules without manually configuring the server. This helps to improve your website’s loading speed and overall performance. Here’s how to do it using popular caching plugins for WordPress.

          Step 1 Installing W3 Total Cache Plugin

          Start by installing and activating the W3 Total Cache plugin. Navigate to the WordPress Dashboard, go to Plugins, then Add New, and search for W3 Total Cache.

          Step 2 Enabling mod_expires With W3 Total Cache

          After activation, go to Performance > Browser Cache in the WordPress dashboard. There, you will find an option to enable the “HTTP (Expires) Header” for different content types, such as CSS, JavaScript, and HTML.

          Make sure to check the box for each relevant type and configure the expiration settings.

          For example, you could set the “Expires header lifetime” to one week for CSS and JavaScript, while setting it to one month for images. Don’t forget to save your settings and purge the cache afterward.

          Step 1 Installing WP Super Cache Plugin

          Start by installing and activating the WP Super Cache plugin. Navigate to the WordPress Dashboard, go to Plugins, then Add New, and search for WP Super Cache.

          Step 2 Enabling mod_expires Using WP Super Cache

          Activate the WP Super Cache plugin. Next, go to the WordPress Dashboard, select Plugins, and then Add New. Search for WP Super Cache, install it, and activate the plugin.

          Now, head over to Settings > WP Super Cache > Advanced. In this section, you will find an “Expiry Time & Garbage Collection” area.

          Enable the “Cache HTTP headers with expires” option, and set an appropriate expiration time for your content.

          For instance, 3600 seconds (1 hour) may work for dynamic content, whereas static files like images could have a longer expiration period. Once you’ve made these adjustments, update the status.

          Step 3 Verify That Cache Is Working (Common Step)

          Clear your site cache through the plugin’s settings to apply all changes. You can then check the HTTP headers using the developer tools in your browser or online services like GTmetrix. This will help confirm that the “Expires” or “Cache-Control” headers are correctly set.

          By following these steps, you can easily enable mod_expires through plugins like W3 Total Cache and WP Super Cache, optimizing caching rules for better website performance without directly modifying server configurations.

          How To Enable mod_expires To Cache Your Website Files For Speed?

          Mod_Expires is a built-in module for the Apache web server, available on all Sangkrit.net hosting plans. This module leverages the functionality of mod_expires to manage how long a client’s web browser caches website resources.

          Here’s how it works: Mod_Expires manipulates the “Expires” headers sent by the hosting server. This gives you control over how long a browser stores cached copies of website resources. By adjusting these cache durations, you can optimize your site’s performance while considering your website’s update frequency.

          Important Note: If the server response already includes an “Expires” header (e.g., generated by a CGI script or a proxied origin server), Mod_Expires won’t modify or add an “Expires” or “Cache-Control” header in those cases.

          How To Enable mod_expires Via .htaccess?

          If Mod_Expires is not enabled you will need to enable it in your .htaccess file which is present in your website’s root directory, sometimes hidden and can be viewed by changing the view option from the top right corner of cPanel’s file manager. You can enable it on a per-directory basis and it applies recursively.

          Sangkrit.net uses the vendor-provided code from Apache mod_expires. Apache HTTPD documentation is accurate for using .htaccess files on your hosting account.

          Locate your .htaccess file: This file is usually located in your website’s root directory (e.g., /var/www/html/). The following given example enables mod_expires for a set of common image types and CSS files:

          # Activate mod_expires for this directory
          ExpiresActive on
          # locally cache common image types for 7 days
          ExpiresByType image/jpg "access plus 7 days"
          ExpiresByType image/jpeg "access plus 7 days"
          ExpiresByType image/gif "access plus 7 days"
          ExpiresByType image/png "access plus 7 days"
          # cache CSS files for 24 hours
          ExpiresByType text/css "access plus 24 hours"

          Similarly, you can configure mod_expires in your .htaccess file with more options by adding extra caching rules.

          Open the .htaccess file and add the following code to specify the caching duration for different file types:

          <IfModule mod_expires.c>
              ExpiresActive On
              # Set expiration for images
              ExpiresByType image/jpg "access plus 1 month"
              ExpiresByType image/jpeg "access plus 1 month"
              ExpiresByType image/gif "access plus 1 month"
              ExpiresByType image/png "access plus 1 month"
              # Set expiration for CSS and JavaScript
              ExpiresByType text/css "access plus 1 week"
              ExpiresByType application/javascript "access plus 1 week"
              ExpiresByType text/javascript "access plus 1 week"
              # Set expiration for other file types
              ExpiresByType text/html "access plus 1 day"
              ExpiresByType application/pdf "access plus 1 month"
              ExpiresDefault "access plus 1 week"
          </IfModule>

          How To Enable mod_expires Via Apache Server?

          Alternatively, if you have root or administrative access to your server you can enable mod_expires directly in Apache by using the command line. Simply, access your server and do as directed.

          Step-1 Enable the module by running the following command:

          bash
          sudo a2enmod expires

          Step-2 After enabling the module, restart Apache to apply the changes. Simply use the following command for restarting apache :

          bash
          sudo service apache2 restart

          Now clear your browser cache to ensure you see the latest changes.

          You may also check HTTP headers by using browser developer tools (Network tab) to confirm that the “Expires” or “Cache-Control” headers are set correctly for the specified file types.

          By enabling mod_expires, you can significantly reduce page load times, as browsers will cache static files and serve them locally on subsequent visits.

          How To Enable Mod_Expires Via WordPress Plugins?

          WordPress users may also use some cache plugins such as WP Super Cache or W3 Total Cache to get this thing done from their admin area dashboard. Read this lesson to know the complete process.

          Why Sangkrit.net Hosting Owners Don’t Need Cache Plugins?

          Website cache conducts a process of temporarily storing digital copies of web pages and their resources such as HTML files, images, CSS, JavaScript, and other elements in static form.

          These cached copies are then served to users when they browse the website, as a result, the load on the server is reduced as the requests are decreased, and the processes used for generating the same content repeatedly are also lessened. Thus, caching significantly improves website performance, its loading speed, and overall user experience.

          So everytime when it comes to website optimization and performance enhancement, caching is often one of the first techniques recommended. Caching stores copies of web pages or parts of pages to deliver content more quickly to users. Typically, website owners resort to various cache plugins or tools to improve loading speeds, especially for WordPress or other CMS-based websites. However, if you’re using Sangkrit.net hosting, you can skip the hassle of managing cache plugins. This is because Sangkrit.net’s hosting and servers come with cPanel integrated with Nginx cache, allowing users to activate powerful caching mechanisms with a single click.

          This article explains why Sangkrit.net hosting users don’t need any external cache plugins or tools and how the built-in Nginx caching in cPanel provides a comprehensive and efficient solution for optimizing website speed and performance.

          The Advantages of Built-In Nginx Cache

          Effortless Activation from cPanel

          Sangkrit.net hosting plans include cPanel, which is the most popular control panel for web hosting. What sets Sangkrit.net apart is the integration of Nginx as a reverse proxy cache. This means that Nginx sits between the user’s browser and the web server, caching the content and serving it to users directly without having to process requests repeatedly on the server.

          The caching can be activated with just one click from the cPanel dashboard. Users do not need to install additional plugins or configure complex settings to benefit from caching. Once the Nginx cache is enabled, the server automatically handles the caching process for both static and dynamic content. This makes it especially beneficial for beginners or those who want a hassle-free way to optimize their websites.

          Superior Speed with Nginx Caching

          Nginx is widely known for its high performance, especially when it comes to handling multiple requests simultaneously. Unlike traditional caching mechanisms, Nginx operates as a reverse proxy, which allows it to cache static assets such as images, JavaScript, and CSS files, as well as dynamic content. By caching at the server level, Sangkrit.net’s Nginx integration reduces the load on the web server, leading to faster loading times.

          Since the cache is handled by the server itself, it is much more efficient than using third-party cache plugins. With a cache plugin, the server still has to load WordPress or another CMS to serve cached content, whereas Nginx can directly serve cached content without invoking the web application, leading to substantial performance improvements.

          Reduced Server Load

          The primary purpose of caching is to reduce the load on the server. When cache plugins are used, they still operate within the environment of the content management system (e.g., WordPress), which requires server resources to process even cached requests. On the other hand, Nginx handles caching outside the CMS, serving cached responses directly from the memory or disk.

          This server-level caching approach not only frees up resources for other processes but also significantly reduces server response time. For Sangkrit.net users, this means that websites can handle more traffic with the same amount of server resources. The server-level caching also helps to prevent overload during traffic spikes, ensuring consistent website performance.

          Why Cache Plugins Become Unnecessary?

          Compatibility Issues with Plugins

          Cache plugins often have compatibility issues, especially with complex themes, eCommerce functionalities, and other plugins. These compatibility issues can cause unexpected errors, such as broken layouts or malfunctioning features. With Sangkrit.net’s Nginx caching, the cache works independently of the CMS and is applied at the server level, eliminating the potential for such conflicts.

          Furthermore, there is no need to troubleshoot the cache plugin settings or adjust the configuration based on different requirements, as the Nginx cache system has already been optimized to deliver maximum performance.

          Simplified Cache Management

          Managing cache plugins often requires regular maintenance, including purging the cache when updates are made to the site. Failing to do so can cause visitors to see outdated content. With Sangkrit.net’s built-in Nginx caching, cache purging can be done effortlessly through cPanel, which simplifies the management process. The system can also be configured to automatically refresh the cache at specified intervals.

          Users no longer need to worry about adjusting cache settings or dealing with complex cache invalidation rules. This makes it a better solution for those who prefer a simplified caching solution without compromising on performance.

          Increased Security & Reduced Risk

          Cache plugins, like any other plugin, can introduce security risks if not properly maintained. They may contain vulnerabilities that could be exploited by hackers. Additionally, using multiple plugins for caching and optimization may increase the risk of plugin conflicts, which can lead to website downtime.

          Sangkrit.net users can avoid these risks entirely by using the server-level Nginx caching. Since the caching is handled at the server level, there is no need to rely on potentially vulnerable third-party plugins for performance enhancements. The server configuration itself ensures the caching system remains secure and functional.

          How To Enable The Nginx Caching?

          Enabling Nginx caching is straightforward and can be done in just a few steps:

          1. Log in to cPanel: Once you log in, locate the Nginx caching option within the cPanel dashboard.
          2. Turn on Nginx Caching: Enable caching with a single click, its there on the right side. The system is designed to be user-friendly, so no technical knowledge is required.
          3. Configure Cache Settings (Optional): While the default configuration works well for most users, advanced settings can be adjusted to control the caching behavior for specific pages or file types.
          4. Purge Cache When Necessary: Users can easily clear the cache from the cPanel dashboard when changes are made to the website that need to reflect immediately.

          The Sangkrit.net’s hosting infrastructure is optimized for speed and reliability, with Nginx as a key component for delivering high performance. The combination of Nginx caching and SSD storage ensures that websites load quickly and handle traffic spikes with ease.

          Sangkrit.net offers 24/7 customer support to assist users with any issues they may encounter. This means that even if you have questions about enabling Nginx caching or configuring your hosting, help is always available.

          Exploring The New Frontier Of Domain Extensions

          Domain extensions play a pivotal role in shaping online identities. While “.com” has long been the gold standard, a new era of domain extensions has emerged, offering businesses and individuals a wealth of opportunities to express their brand and connect with audiences. This article delves into the exciting world of new domain extensions and how they can enhance your online presence.

          The Rise of New Domain Extensions

          With the introduction of the Internet Corporation for Assigned Names and Numbers (ICANN) new generic top-level domains (gTLDs) program, the internet witnessed an explosion of new domain extensions. Previously dominated by familiar endings like “.com,” “.net,” and “.org,” the domain space now boasts thousands of options, including niche-specific and location-based extensions.

          From “.tech” and “.design” to “.store” and “.blog,” these new extensions allow businesses and individuals to choose a domain that aligns perfectly with their brand and industry. The availability of these extensions means that businesses can secure a relevant and memorable domain name that reflects their identity.

          Here’s a list of some popular new domain extensions (also known as generic top-level domains or gTLDs) that have emerged in recent years:

          General Domain Extensions

          1. .app
          2. .blog
          3. .design
          4. .shop
          5. .tech
          6. .online
          7. .site
          8. .store
          9. .space
          10. .club

          Industry-Specific Domain Extensions

          1. .photography
          2. .marketing
          3. .financial
          4. .health
          5. .law
          6. .travel
          7. .restaurant
          8. .games
          9. .fashion
          10. .construction

          Location-Based Domain Extensions

          1. .nyc (New York City)
          2. .london
          3. .berlin
          4. .paris
          5. .tokyo
          6. .boston
          7. .vegas (Las Vegas)
          8. .miami
          9. .sydney
          10. .barcelona

          Community-Based Domain Extensions

          1. .community
          2. .family
          3. .friends
          4. .network
          5. .club
          6. .voting
          7. .ngo (Non-Governmental Organizations)
          8. .social
          9. .events
          10. .fund

          Niche and Creative Domain Extensions

          1. .guru
          2. .ninja
          3. .life
          4. .love
          5. .news
          6. .wiki
          7. .fun
          8. .mobi (Mobile)
          9. .xyz
          10. .tokyo

          Technology and Innovation Domain Extensions

          1. .ai (Artificial Intelligence)
          2. .cloud
          3. .dev (Developers)
          4. .io (Indian Ocean, also popular in tech)
          5. .app
          6. .game
          7. .software
          8. .data
          9. .robot
          10. .security

          Personal Domain Extensions

          1. .me
          2. .name
          3. .email
          4. .person
          5. .family

          This list is not exhaustive, as new domain extensions continue to be introduced regularly. It’s essential to research and choose the one that best fits your brand, audience, and goals.

          The Benefits of Using New Domain Extensions

          1. Enhanced Brand Identity: New domain extensions provide an opportunity to craft a unique online identity. A domain name that closely aligns with your business can create a stronger impression and be more memorable for visitors. For instance, a tech startup may choose “.tech” to signal its innovation, while a local bakery might opt for “.bakery” to enhance its community appeal.
          2. SEO Advantages: While “.com” domains have traditionally held a strong position in search engine rankings, newer extensions also contribute positively to SEO efforts. A relevant domain extension can improve click-through rates as users may feel more inclined to click on a domain that appears tailored to their interests.
          3. Availability of Desirable Names: The demand for “.com” domains has led to a scarcity of available names. However, the vast array of new extensions means that businesses are more likely to find a domain name that aligns with their brand without resorting to complicated variations or creative spellings.
          4. Niche Targeting: With new domain extensions, businesses can better target specific audiences or industries. For example, “.health” can attract users interested in health-related content, while “.travel” may appeal to avid travelers. This specificity can enhance marketing efforts and foster a more targeted customer base.
          5. Innovation & Creativity: New domain extensions encourage creativity in branding and marketing strategies. Businesses can create memorable campaigns by incorporating their domain extension into their branding. For instance, a digital marketing agency could use a domain like “innovative.agency” to reinforce its modern approach.

          Considerations When Choosing a Domain Extension

          While the benefits of new domain extensions are clear, there are several factors to consider when selecting the right one for your business:

          1. Audience Perception: Consider how your target audience may perceive different extensions. While some extensions may convey professionalism, others might appear less credible. Conduct market research to gauge audience sentiment toward various domain endings.
          2. Branding Consistency: Ensure that your chosen domain extension aligns with your overall branding strategy. Consistency in messaging and visual identity will help reinforce your brand’s values and vision.
          3. Future Trends: Stay informed about emerging trends in the digital landscape. As technology evolves, new domain extensions may become more popular, making it essential to keep an eye on industry shifts.

          The opportunities presented by new domain extensions are boundless. Businesses and individuals can leverage these extensions to create a distinct online identity, improve SEO efforts, and connect more effectively with their target audience. By moving beyond the traditional “.com” and exploring the vast landscape of domain options, you can position your brand for success in an increasingly competitive online world.

          How To Register These Domain Extensions?

          Here’s a step-by-step guide on how to register new domain extensions at Sangkrit.net:

          Step 1: Visit Sangkrit.net

          Go to the Sangkrit.net Domain Registration page where you can register new domain extensions along with other web services.

          Step 2: Search for Your Desired Domain Name

          Use the domain search bar on the homepage to enter your desired domain name along with the new extension. For example, you might type “yourbrand.tech” or “youridea.shop.” Click on the “Search” button to see if the domain name is available.

          Step 3: Choose Your Domain Extension

          If the entered domain name is not available, Sangkrit.net will suggest similar available domain names with different extensions. Select the domain extension that fits your needs, whether it’s “.tech,” “.online,” “.shop,” or any other new gTLD.

          Step 4: Add to Cart

          Once you have found an available domain name, click “Add to Cart” to begin the registration process. You can add multiple domain names to your cart if you wish to register several.

          Step 5: Choose Domain Registration Duration

          Select the number of years you want to register the domain for (typically from 1 to 10 years). You can also enable auto-renewal to ensure your domain name doesn’t expire.

          Step 6: Configure Additional Domain Settings (Optional)

          You may choose to add domain privacy protection to hide your personal information from the WHOIS database. You can also select other services like email hosting or web hosting if needed.

          Step 7: Proceed to Checkout

          Review the items in your cart and then click “Proceed to Checkout.” You’ll be prompted to create an account or log in if you already have one.

          Step 8: Complete the Payment

          Enter your billing information and complete the payment using the available payment methods. Once the payment is confirmed, your domain name will be registered.

          Step 9: Manage Your Domain

          After registration, you can manage your domain settings, such as DNS configuration, domain forwarding, and renewal preferences, through the Sangkrit.net control panel.

          That’s it! Your new domain name is now registered and ready for use.

          In this exciting frontier, your domain name is not just an address but a powerful tool for storytelling, engagement, and growth. Embrace the possibilities, and let your domain reflect the unique essence of your brand.

          How To Redirect Users By Their Country In WordPress?

          The IP2Location Redirection plugin is a powerful WordPress tool that allows website owners to manage redirection tasks based on visitors’ geolocation, identified through their IP address. It supports country and region-based redirection to a specified URL or custom page, making it ideal for handling 301 and 302 redirects without needing expertise in server configurations like Apache .htaccess.

          Common Features:

          • You can set up multiple redirection rules as needed for different countries or regions.
          • It supports IPv4 and IPv6, making it flexible for all IP addresses.
          • It helps improve SEO by reducing old or broken links.
          • You may configure logging and display custom messages for blocked visitors.

          The plugin supports both IPv4 and IPv6, utilizes IP2Location’s IP geolocation data, and offers flexible redirection rules, helping improve SEO by managing old or broken links effectively.

          Step 1: Install and Activate the Plugin

          Start by installing the IP2Location Redirection plugin. In your WordPress admin dashboard, go to Plugins > Add New, search for the plugin by name, and click Install Now. Once installed, activate it. This plugin is highly recommended for handling redirection based on country or region using IP address geolocation.

          Step 2: Configure the Basic Settings

          Navigate to IP2Location Redirection > Settings in the dashboard. Here, you will configure the initial settings:

          • Default Redirection Behavior: Choose the default action, such as redirecting to a specified URL or blocking access for certain countries.
          • Geolocation Data Setup: The plugin supports both IP2Location IP geolocation BIN data and web service for geolocation lookup. If you choose to use the BIN data, download the file from the IP2Location website and upload it to your server. Make sure to update the BIN data monthly via the settings page for accurate results.

          Step 3: Add Redirection Rules

          Go to IP2Location Redirection > Rules and click Add New Rule to create a country or region-based redirection rule:

          • Rule Name: Give a descriptive name for easy management.
          • Country or Region: Select the country or region you want to target for redirection.
          • Redirection URL: Specify the destination URL for visitors from the selected location.
          • Redirection Type: Choose between 301 Permanent or 302 Temporary redirection.
          • Source URL: Leave it empty to apply site-wide redirection, or specify a specific page.
          • Additional Conditions: Configure optional conditions, such as user agent, referrer, or URL parameters.

          Step 4: Save and Activate the Rule

          After setting up the parameters, click Save Rule to activate it. This rule will now redirect users to the specified URL based on their IP geolocation.

          Step 5: Testing and Verification

          To verify that the redirection is functioning correctly, simulate visits from the selected country using a VPN or proxy. Ensure the visitors are redirected according to the configured rules.

          The IP2Location Redirection plugin is powerful yet simple, allowing website owners to manage redirections without needing to be familiar with Apache .htaccess configurations.

          How To Redirect HTTP URLs to HTTPS Via .htaccesss File?

          After the SSL is installed on your domain name, you will need to redirect all non-secure HTTP links to their secure HTTPS connection for several important reasons.

          For any website to work over SSL, there are some modifications you will need to make to your .htaccess file, and then it will redirect your visitors to the HTTPS version of your website. To start with the process of HTTP redirection simply login to your Sangkrit.net account and follow these steps:

          1. Go to your product page.
          2. Under the Server, click Manage for cPanel
          3. In the Account Dashboard, click File Manager.
          4. In the cPanel File Manager, click Settings.
          5. Make sure that Show Hidden Files (dotfiles) is checked, and click Save.
          6. Click on public_html, and open your .htaccess if you already have one. If not, click File+, name the file .htaccess and click Create New File.
          7. Select the .htaccess file, and click Edit.
            • If you just created your .htaccess file, use this code:
              RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com RewriteRule ^(.*)$ https://www.coolexample.com/$1 [R,L]
            • If your .htaccess file already exists, insert the lines that begin with ReWriteCond and RewriteRule directly after the already existing ReWriteEngine On.
            • Click Save Changes and Close. 

          That’s it. Visit your website and you’ll be re-directed to the HTTPS version.

          How To Redirect HTTP To HTTPS In WordPress?

          1. Log into your WordPress Dashboard.
          2. Visit Settings, click General.
          3. Locate the following fields:
            • WordPress Address (URL)
            • Site Address (URL)
          4. In each field, update your URLs from http to https
          5. Scroll down and click Save Changes.
          6. Open your current .htaccess file in the /public_html/ folder with the cPanel file manager for editing. If you don’t already have a .htaccess file, you’ll need to create one.
          7. Insert the following code at the top of your .htaccess file:
          8. Click Save Changes at the top-right corner of the screen.

          In some cases, you will need to edit your .htaccess file, if you don’t want that then use a WordPress plugin like Really Simple SSL. This saves you from the technical steps edit file editing on the server.

          The Importance Of Redirecting HTTP To HTTPS After Installing SSL

          Redirecting HTTP to HTTPS after installing an SSL Certificate is important as both HTTP and HTTPS versions start to work simultaneously on your website and most of your traffic continues to land on the old HTTP version. It is crucial for several other reasons as well –

          1. Website Security: HTTPS encrypts data transmitted between the user’s browser and your website, making it secure and protecting sensitive information such as login credentials, payment details, and personal data. If your website is accessible via HTTP, users’ data may be vulnerable to interception and tampering.
          2. User Experience: Search engines like Google prioritize HTTPS websites in their search rankings. This means that redirecting to HTTPS can improve your website’s visibility and attract more organic traffic. Additionally, users are becoming increasingly aware of the importance of online security and are more likely to trust and interact with websites that use HTTPS.
          3. Compliance: Many industries and regulatory bodies require websites to use HTTPS to protect sensitive data. By redirecting HTTP to HTTPS, you ensure that your website complies with these regulations.
          4. Mixed Content Issues: When a webpage loads content over both HTTP and HTTPS, it can cause security issues and disrupt the user experience. Redirecting to HTTPS ensures that all content is loaded securely.

          Methods Of Redirecting HTTP to HTTPS

          There are several ways to redirect HTTP to HTTPS, including:

          • Using server configuration: Most web servers (like Apache and Nginx) allow you to configure redirects using their built-in features. This method contains some very technical steps.
          • Using a .htaccess file: If you’re using Apache, you can create a .htaccess file in your website’s root directory and add a redirect rule. This method is easier in comparison to the above method.
          • Using a plugin or tool: Many content management systems (CMS) and web hosting providers offer plugins or tools that can automatically redirect HTTP traffic to HTTPS. This is the easiest one, WordPress users can simply use the ‘Really Simple SSL’ plugin.

          Redirecting HTTP to HTTPS is essential for ensuring the security, user experience, compliance, and overall success of your website. The next lesson will guide you through the complete process of redirecting the HTTP version of your website to the secure HTTPS version.

          How To Easily View & Edit Hidden Files On Your Web Hosting?

          Hidden files on a server or hosting are invisible by default. They start with a dot (.), such as .htaccess or .env. These files are typically not displayed as they are considered system or configuration files used by the server to manage server settings or website behavior.

          For example, .htaccess can control server rules for a website, while .env files store environment variables for web applications.

          To edit hidden files on your server or hosting, you will need to change the file manager settings to view and edit such files –

          Step 1 Access your cPanel account.

          Step 2 Locate the file manager and click the “File Manager” icon.

          Step 3 In the File Manager, click “Settings” at the top right, check the “Show Hidden Files (dotfiles)” option, and click “Save.”

          Step 4 Navigate to the directory where the hidden file (such as .htaccess) is located.

          Step 5 Right-click the file, select “Edit,” make the necessary changes, and save.

          That’s it. You may ensure the modifications work correctly on your website.

          When editing hidden files on a server, follow some precautions to avoid disrupting your website functionality or any server configurations.

          Always create a backup before making changes, so you can restore the original if needed. This can be easily done by double-clicking to download the file.

          Be cautious with syntax, as even minor mistakes can cause errors. For instance, editing .htaccess improperly could restrict the site access. So make incremental changes and test the site thoroughly after each edit. You may also use a staging environment to test changes before applying them to the live website.

          cPanel Hosting Explained: A Beginner’s Guide To Building Website

          cPanel Hosting is a user-friendly web hosting service that provides an easy control panel to manage your website’s backend, hosted on a server.

          The cPanel interface simplifies managing your website’s resources, such as files, databases, email accounts, domains, and security settings. It allows users to perform tasks like installing software, monitoring website statistics, and managing FTP accounts without requiring advanced technical skills.

          How To Use cPanel To Make Your Website?

          Step1 Register a Domain Name

          Start by purchasing a domain name from Sangkrit.net. Choose a name that aligns with your brand or business.

          Step-2 Subscribe to cPanel Hosting

          Go to the hosting section at Sangkrit.net and subscribe to a suitable cPanel hosting plan based on your requirements (disk space, bandwidth, etc.).

          There are various hosting plans at Sangkrit.net:

          1. Starter Hosting: Offers 1 website, 30 GB storage, unmetered bandwidth.
          2. Economy Hosting: Offers 1 website, 100 GB space, unlimited bandwidth, 100 email accounts, and 10 MySQL databases.
          3. Deluxe Hosting: Offers Unlimited websites, space, and bandwidth, 500 email accounts, and 25 MySQL databases.
          4. Ultimate Hosting: Offers Unlimited websites, space, bandwidth, 1000 email accounts, unlimited MySQL databases, double processing power & memory, premium DNS, and a 1-year SSL certificate.

          These options offer increasing resources and features based on the plan and its pricing.

          Step-3 Access the cPanel Dashboard

          After subscribing, you’ll be able to access your cPanel dashboard from your account’s ‘My Products’ page. It takes a minute and the automated process will let you add your domain name to your cPanel hosting and then access the cPanel admin area where you can upload or make your website.

          Step-4 Make Website With WordPress

          1. In the cPanel dashboard, locate the “Installatron” application installer.
          2. Click on WordPress and follow the prompts to install it on your domain.
          3. Select the domain name, configure the installation settings, and click “Install.”
          4. Once installed, configure WordPress settings such as the website title, permalinks, and general settings to suit your needs.
          5. To start managing your website, log in to the WordPress dashboard using your admin username and password (set during installation).
          6. Choose a theme from the “Appearance” section to define your website’s look and feel.
          7. Install plugins to add functionality (e.g., Social Sharing, SEO tools, contact forms, etc).
          8. Add pages, posts, images, and other content from the WordPress admin dashboard.

          Step-5 Ensure Website Security

          Regularly update WordPress, themes, and plugins, keep website backups, and use cPanel’s security tools to manage SSL certificates and malware scans.

          cPanel hosting at Sangkrit.net is ideal for beginners and experienced web developers. It offers a powerful and intuitive platform for website management.

          How To Prevent Online Directory Browsing Or Listing Via cPanel?

          Directory listing is a default server feature that shows the contents of a directory (folder) when there is no index file such as index.php or index.html in the folder.

          When directory listing is enabled, visitors can see a list of all files and subdirectories within that directory and they can also download any file, and that might pose a security risk as it may expose any sensitive files or configuration information.

          Disabling directory listing prevents such exposures, it forces the server to show a “403 Forbidden” error if there is no index file.

          This can either be done manually by adding a line of code on .htaccess file as shown below:

          Step-1 Open your cPanel dashboard.

          Step-2 Go to “File Manager” and open the root directory of your website (usually public_html) or any directory where you want to disable directory listing.

          Step-3 Look for the .htaccess file in the root directory.

          Step-4 If it doesn’t exist, create a new file named .htaccess.

          Step-5 Add this line inside the .htaccess file: “Options -Indexes”

          Step-6 Save the file and exit.

            Directory listing is now disabled for your site.

            Alternatively,

            Step-1 On cPanel, navigate to the “Advanced” section,

            Click the “Indexes” link or icon.

            Step-2 Click the folder icon and enter a directory

            Step-3 Click the directory name to configure a directory and turn indexing on or off.

            Step-4 Select the “No Indexing” option

            Step-5 Click the “Save” button.

              Another way of doing the same thing is:

              Step-1 Navigate to the “File Manager”

              Step-2 Right-click the directory and select “Manage Indices”.

              Step-3 This automatically takes you to the “Indexes” page (where we were in step 2 of the above method).

              Step-4 Click the folder icon and enter a directory

              Step-5 Click the directory name to configure a directory and turn indexing on or off.

              Step-6 Select the “No Indexing” option

              Step-7 Click the “Save” button.

                Following any of the above methods is going to disable the directory listing.

                How Many Words Or Characters To Use On Post Title?

                Google’s search display limit for any content title is near about 60 characters which may vary from device to device. All search engine prefers shorter titles, so if your post title is longer than sixty characters, the search results page will cut off some part of the title. But nowadays it might get rewritten by AI automatically especially if your content is good.

                Long titles with good content are more likely to be rewritten by search engines. But if you stick to the following limit, your titles are less likely to be cut off in search engine results, ensuring the entire message is visible.

                For search-friendly post titles use:

                • Word Count: Aim for 6-12 words which is long enough to include keywords while remaining concise.
                • Character Limit: Use 50-60 characters as this length ensures the title fits within Google’s search results without getting cut off.

                Keeping titles within these ranges can help improve click-through rates while including the main keywords for better search ranking. It’s important to make the title descriptive and engaging while focusing on primary keywords. Short post titles have several more advantages for search visibility and user engagement:

                1. Short Titles are Easier to Read: Shorter titles are more straightforward and can be quickly understood by users, increasing the chances of grabbing attention.
                2. Short Titles Display Better on Search Results: They are less likely to be cut off in search engine results, ensuring the entire message is visible.
                3. Short Titles may have Higher Click-Through Rate (CTR): Concise titles can be more appealing, encouraging users to click.
                4. Short Titles promote better Mobile Optimization: They fit better on smaller screens, enhancing the user experience on mobile devices.
                5. Short Titles Focus on Main Keywords: Shorter titles emphasize the core topic, making it easier for search engines to identify the page’s relevance.

                How To Limit Post-Title Length? There are multiple plugins such as ‘Limit Post Titles’ that let you easily set a limit over post title length in WordPress.

                Alternatively, if you use an SEO plugin such as All in One SEO or WordPress SEO, these already show you the extra characters you have in your title so that you can change them or use an alternative title for search engines that only displays on search engine results pages.

                How To Control Post Visibility In WordPress By User Roles, Login Status, Memberships & Password Protection?

                WordPress site owners can easily acquire complete control over the visibility of posts. They can set which group of people can see what specific content on their website. This lesson guides you on making certain posts, pages, and other custom post types visible only to specific users such as logged-in users, users by their roles, and users with passwords to view the content.

                How To Control WordPress Posts Visibility?

                The edit screen of every post and page has a settings sidebar on the right, and there are two sections; Post and Block.

                In the post section, there is a ‘Summary’ meta box that offers a visibility option as ‘Status’ on the top.

                If you click the link next to ‘Status’ it shows you options to keep any post public make it private, or password protected.

                How To Make Any Post Private In WordPress?

                When you make any post private it becomes visible only to the site administrator and editors. Simply follow the steps:

                1. Create a new post or open any old post for editing
                2. On the right sidebar, click the ‘Post’ block
                3. Under the post section on top, click ‘Published’ or ‘Draft’ next to the ‘Publish’ option
                4. It will show you three options: Public i.e. default option, Private, and Password Protected
                5. Since you are making the post private select the ‘Private’ option
                6. Publish/Update the post and it will become private

                The option makes the post private i.e. hidden from the logged-out users and visible only to the site admins and editors. These posts are hidden from subscribers, readers, feeds, and searches.

                How To Show/Hide WordPress Posts Based On The User Roles?

                As you can see, private posts are only visible to site admins and editors but what if you want to make certain posts visible selectively to specific user roles such as subscribers, authors, contributors, etc? You can do that also with any of the following plugins:

                1. Advanced Access Manager – The plugin enables you to manage access to your website content for any user role, individual user, or visitor. It also allows you to configure the default access to all posts, pages, custom post types, categories, and custom taxonomies.
                2. Membership Plugin – Restrict Content – The plugin offers you complete control over who can and who cannot view any content on your WordPress site. 

                How To Password Protect Any WordPress Post?

                1. Create a new post or open any old post for editing
                2. On the right sidebar, click the ‘Post’ block
                3. Under the post section on the top right, click ‘Published’ or ‘Draft’ next to the ‘Status’ option
                4. It will show you three options: Public i.e. default option, Private, and Password Protected
                5. Since you are making the post password-protected select the ‘Password Protected’ option
                6. It will ask you to enter a password, enter the password you like to keep on post
                7. Publish/Update the post and it will become password-protected

                Now you can share the link and password with those whom you want to read the post. Only the post title will show up on the home page and other archive pages and it would look something like this: Password Protected: Title of the Post.

                It will also show this message in the post content area: “This content is password protected. To view it please enter your password below” and a field to enter the password of the post.

                Unlike private posts which are completely hidden from logged-out users, a password-protected post shows the title of the post in the way mentioned above.

                Now the question arises, is it possible to hide the title and password field of the password-protected post on home and other archive pages? Yes, you can do that also.

                How To Hide Password Protected Post Titles From Home & Other Archive Pages In WordPress?

                As we have discussed above, when you password-protect any post, the front end of the website shows the post title and a password field so that users with a password can view the post. Now if you want to hide this title and make it visible only to the users with a link and password then follow these steps:

                1. Navigate to Plugins -> Add New page to find and install WordPress Hide Posts, plugin
                2. Upon activation, visit Settings -> Hide Posts page to select where you want to use the plugin such as on posts, pages, or other content types
                3. Now open the password-protected post for editing
                4. Navigate to the ‘Hide Posts’ meta box on the right sidebar
                5. Tick where you want to hide the post such as on the home page, category pages, tags pages, search pages, and other archive pages, etc
                6. Update the post and now the protected title and password field will also be hidden on the front of your website. Only the users with a link would be able to enter the password.

                How To Hide Any WordPress Post From Home, Category & Other Archive Pages?

                The plugin mentioned above is not just for hiding password-protected posts but it allows you to hide any posts from the home page, category page, search page, tags page, authors page, RSS Feed, REST API, Post Navigation, and Native Recent Posts Widget, etc.

                Simply install and activate the WordPress Hide Posts plugin then follow these steps to hide any post:

                1. Visit Settings -> Hide Posts page to select where you want to use the plugin such as on posts, pages, or other content types
                2. Now open the post (you want to hide) for editing
                3. Navigate to the ‘Hide Posts’ meta box on the right sidebar
                4. Tick where you want to hide the post such as on the home page, category pages, tags pages, search pages, and other archive pages, etc
                5. Update the post and the post will get unlisted from the archive pages that you have selected

                So these were all important parts of controlling the visibility of posts and pages on your WordPress site.