How to use Apache and directives in htaccess

May 9, 2021 0 Comments

In this article I will show you how we can use files and filesMatch directives in an htaccess file. What is files directive and how to use it Files directive is part of Apache core module . You can use this directive in an htaccess or server configuration file to apply other directive to one …

How to start and rank a new blog in 2021 | Blogging SEO tips

May 8, 2021 0 Comments

Everyone who is new to blogging or just started blogging in 2021 have a few questions in their mind Is my blog going to make any difference on the web in 2021 Will my blog rank in search engines How to earn money from blog in 2021 It’s 2021 . The world wide web is …

Add trailing slash to URLs using htaccess | Enforce URL trailing slash

May 7, 2021 0 Comments

This article is for Apache users who want to learn how to add a trailing slash to URLs. A trailing slash is / character that appears at the end of URLs something like the following : https://example.com/foo/bar/ . In this article we will learn how to add a trailing slash to URLs using RewriteRule directive …

Add custom domain to Google Blogger with 4 simple steps

May 7, 2021 0 Comments

Are you having trouble adding your new custom domain to Google blogger? In this article I will show you how to add a newly registered domain to Google Blogger with 4 simple steps. I will show you with step by step instructions how to add and varify your domain on blogger and search console. Connect …

How to match against root directory using RewriteRule in htaccess

May 6, 2021 0 Comments

In this article I will show you how to match or rewrite root directory path using RewriteRule directive in an htaccess file. How to match root directory RewriteRule directive uses a relative path pattern in htaccess Context. You don’t need to use full path as RewriteRule already knows the current directory or the directory the …

How to redirect domain with exception using RewriteRule in htaccess

May 1, 2021 0 Comments

Through this article we will learn how to write a code in htaccess to redirect a domain to another domain with exception. We will use both directives RewriteRule and RedirectMatch in the example codes because both directives can be used in htaccess but you should always prefer RewriteRule as it’s faster then Redirect . Redirect …

Can we use RewriteRule in htaccess to rewrite URI fregment ?

May 1, 2021 0 Comments

In this post I am going to give my answer with some code explainations to the following frequently asked question on internet : “Is it possible to rewrite URI fregment using RewriteRule in htaccess?” This is the question that is asked most often by newbies on StackOverflow . Some mod_rewrite beginners often post these type …

Step by step guide to change WordPress domain safely without losing SEO rank

April 30, 2021 0 Comments

Do you want to change your WordPress blog domain but don’t know how to do it? Don’t worry ! I will help you with the domain change process. In this article I will show you how to change WordPress blog domain without loosing the search engine rank and without effecting the performance of your WordPress …

How to check existent files and folders with RewriteRule in htaccess

April 29, 2021 0 Comments

With RewriteRules we can use conditions to check if a file or folder exists. To check the existence of a file we us the -f oprator . The “-f” represents that the file being checked exists in the server filesystem. We use !-f when we do the opposite. The !-f means that the file being …

How to use Apache DirectoryIndex in htaccess ?

April 29, 2021 0 Comments

In this article we will learn about the Apache DirectoryIndex directive provided by Apache directory module . I will show how to use this directive in an htaccess or server.config file. Apache DirectoryIndex directive DirectoryIndex is part of Apache mod_dir. A directory module provided by Apache server. We use DirectoryIndex in an htaccess or server …