Login

How to remove .php, .html extensions with .htaccess

You will learn How to remove .php, .html extensions with .htaccess.

Generally you will need to have user-friendly URLs to your site. As opposed to https://www.Instance.Com/index.Html you will need to have https://www.Instance.Com/ The second URL seems a good deal better. Also, from the search engine optimization factor of view is better to don’t use report extensions.

What is an .htaccess file

An .htaccess file is a simple ASCII file that you create with a text editor like Notepad or TextEdit. The file lets the server know what configuration changes to make on a per-directory basis.

Please note that .htaccess is the full name of the file. It isn’t file.htaccess, it’s simply .htaccess.

.htaccess files affect the directory in which they are placed in and all children (sub-directories). For example if there is one .htaccess file located in your root directory of yoursite.com, it would affect yoursite.com/content/yoursite.com/content/images/, and so on…

It is important to remember that this can be bypassed. If you don’t want certain .htaccess commands to affect a specific directory, place a new .htaccess file within the directory you don’t want to be affected with the changes, and remove the specific command(s) from the new file.

With an .htaccess file you can:

  • Redirect the user to different page
  • Password protect a specific directory
  • Block users by IP
  • Preventing hot-linking of your images
  • Rewrite URLs
  • Specify your own Error Documents

The steps to remove file extensions are:

  1. Login to your cPanel account.
  2. Go to File Manager – in the FILES Section
  3. In the File Manager go to the Settings button on the top right corner.
  4. On the Preferences window that will appear check the Show Hidden Files (dotfiles) option. Click Save button to apply the settings.
  5. Now navigate to the .htaccess file. If the file doesn’t exist you will need to create it.
  6. Click the Edit button from the File Manager top menu.

Add the below lines to the .htaccess file. Click the Save Changes button and then the Close button.

To remove .php extension with .htacess

#remove php file extension-e.g. https://example.com/file.php will become https://example.com/file
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

Now the Apache web server will remove .php

To remove .html extension use:
#remove html file extension-e.g. https://example.com/file.html will become https://example.com/file
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
Now its all set! you can now Remove files extention with .htacess

Full Seo guide – for beginners

Full Seo guide – for beginners

se

seo statistics

What is Seo?

SEO stands for search engine optimization. Which is the art of ranking high on a search engine in the unpaid section, also known as the organic listings.

Alright, let’s translate that to English. Here’s my go at it:

Search engine optimization (SEO) is the process of optimizing your online content so that a search engine likes to show it as a top result for searches of a certain keyword.

Let me break that down even further:

When it comes to SEO, there’s you, the search engine, and the searcher. If you have an article about how to make vegan lasagna, you want the search engine (which, in 90% of all cases, is Google) to show it as a top result to anyone who searches for the phrase “vegan lasagna.”

SEO is the magic you have to work on your article in order to make Google very likely to include your post as one of the top results whenever someone searches for that keyword.

Search engine basics

In order to do this, search engines will scan, or crawl, different websites to better understand what the site is about. This helps them deliver more relevant results to those who are searching for certain topics or keywords. Similarly, the search engines will scan the site to determine how easy it is to navigate and read, rewarding user-friendly sites with higher rankings on the search engine results page.

SEO is the process that organizations go through to help make sure that their site ranks high in the search engines for relevant keywords and phrases. For instance, let’s say that you have an article about how to build a birdhouse. In order to get your content in front of the right people, you want to try to optimize your this blog post so that it will show up as a top result for anyone who searches for the phrase “build a birdhouse.”

Which search results square measure “organic”?
As we tend to same earlier, organic search results square measure those that square measure attained through effective SEO, not got (i.e. not advertising). These wont to be straightforward to identify – the ads were clearly labeled intrinsically and also the remaining results generally took the shape of “10 blue links” listed below them. however with the approach search has modified, however will we tend to spot organic results today?

Today, programme results pages — usually brought up as “SERPs” — square measure full of each a lot of advertising and a lot of dynamic organic results formats (called “SERP features”) than we’ve ever seen before. Some samples of SERP options still emerge, driven for the most part by what folks square measure seeking.

For example, if you hunt for “Denver weather,” you’ll see a forecast for the town of Denver directly within the SERP rather than a link to a website which may have that forecast. And, if you hunt for “pizza Denver,” you’ll see a “local pack” result created from Denver dish places. Convenient, right?

It’s necessary to recollect that search engines build cash from advertising. Their goal is to higher solve searcher’s queries (within SERPs), to stay searchers returning, and to stay them on the SERPs longer.

Some SERP options on Google square measure organic and might be influenced by SEO. These embody featured snippets (a promoted organic result that displays a solution within a box) and connected queries (a.k.a. “People additionally Ask” boxes).

It’s price noting that there square measure several different search options that, albeit they don’t seem to be paid advertising ,cannot generally be influenced by SEO. These options usually have information nonheritable from proprietary information sources, like Wikipedia, WebMD, and IMDb.

Why SEO is very important

Organic  search is a huge part of most business’s website performance, as well as a critical component of the buyer funnel and ultimately getting users to complete a conversion or engagement.

As marketers know, Google owns a significantly larger portion of the search market than competitors like Yahoo, Bing, Baidu, Yandex, DuckDuckGo, and the many, many others.

That’s not to say that all search engines don’t contribute to a brand’s visibility — they do — it’s just that Google owns about 75 percent of the overall search market. It’s the clear-cut leader and thus its guidelines are important to follow.

But the remaining 25 percent of the market owned by other engines is obviously valuable to brands, too.

Google, being the most visited website in the world (as well as specifically in the United States), also happens to be the most popular email provider in the world (with more than 1 billion users). Not to mention YouTube is the second biggest search engine.

We know that a clear majority of the world that has access to the internet is visiting Google at least once a day to get information.

Being highly visible as a trusted resource by Google and other search engines is always going to work in a brand’s favor. Quality SEO and a high quality website takes brands there.

another reason why your site need seo optimization or improvement

Everyone wants better organic rankings and maximum visibility. Few realize that optimal user experience is a big part of getting there.

Google has learned how to interpret a favorable or unfavorable user experience, and a positive user experience has become a pivotal element to a website’s success.

Customers know what they want. If they can’t find it, there’s going to be a problem. And performance will suffer.

A clear example of building a strong user experience is how Google has become more and more of an answer engine offering the sought-after data directly on the SERPs (search engine results pages) for users.

The intention of that is offering users the information they are looking for in fewer clicks, quickly and easily.

Quality SEO incorporates a positive user experience, leveraging it to work in a brand’s favor.

Should I rent AN SEO skilled, consultant, or agency?
Depending on your information measure, temperament to be told, and also the complexness of your website(s), you may perform some basic SEO yourself. Or, you may discover that you simply would favor the assistance of AN professional. Either approach is okay!

If you finish up trying to find professional facilitate, it is vital to understand that a lot of agencies and consultants “provide SEO services,” however will vary wide in quality. Knowing a way to select a decent SEO company will prevent plenty of your time and cash, because the wrong SEO techniques will really damage your website quite they’ll facilitate.

White hat vs black hat SEO
“White hat SEO” refers to SEO techniques, best practices, and techniques that abide by programme rule, its primary focus to supply a lot of worth to folks.

“Black hat SEO” refers to techniques and techniques that arrange to spam/fool search engines. whereas black hat SEO will work, it puts websites at tremendous risk of being fined and/or de-indexed (removed from search results) and has moral implications.

How to increase your Seo Ranking

Follow these suggestions to enhance your program improvement (SEO) and watch your web site rise the ranks to the highest of search-engine results.

1. Publish Relevant Content
Laptop.Quality content is that the much loved driver of your program rankings and there’s no substitute for nice content. Quality content created specifically for your supposed user will increase website traffic, that improves your site’s authority and connectedness. Fine-tune your net writing skills.

Keywords
Identify and target a particular keyword phrase for every page on your web site. rely on however your reader would possibly explore for that specific page with search terms like:

masters in engineering management
what is medicine engineering?
title IX resources
northern lights
how to apply for scholarships?
application point in time
Multiple Keyword Phrases

It is terribly tough for a webpage to attain program rankings for multiple keyword phrases—unless those phrases square

measure terribly similar. one page could also be able to rank for each “biomedical engineering jobs” and “biomedical engineering careers”. Ranking for “student affairs” and “dean of students” or “gender discrimination” and “violence reportage procedures” with one page is unlikely.

If you would like to rank for multiple keywords phrases along with your web site, you may got to create a separate webpage for every keyword phrase you’re targeting.

Placing Keywords
Once your keyword phrase is chosen for a given page, take into account these questions:

Can I use half or all of the keyword phrase within the page computer address (by victimization keywords in folders)?
Can I use half or all of the keyword phrase within the page title?
Can I use half or all of the keyword phrase in page headings and subheadings?
Answering affirmative to those queries will improve your program ranking. Be natural and easy, though. as an example, you are doing not wish the word “engineering” to indicate up 3 or additional times within the computer address or have the phrase aurora borealis recurrent within the page title and each heading. Readability and usefulness still trump program improvement.

Content

Beyond page computer address, title, and headings, content is most influential on program rankings. Repeat your keyword phrase many times throughout the page—once or doubly within the gap and shutting paragraphs, and 2 to four additional times throughout the remaining content.

Don’t forget to use daring, italics, heading tags (especially associate H1), and alternative stress tags to spotlight these keyword phrases—but do not exaggerate it. you continue to wish your language and expressive style to scan naturally. ne’er sacrifice sensible writing for SEO. the most effective pages square measure written for the user, not for the program.

2. Update Your Content often
You’ve in all probability detected that we have a tendency to feel pretty powerfully regarding content. Search engines do, too. often updated content is viewed mutually of the most effective indicators of a site’s connectedness, thus make sure to stay it contemporary. Audit your content on a collection schedule (semesterly for example) and create updates pro re nata.

3. Metadata
When planning your web site, every page contains an area between the tags to insert data, or info regarding the contents of your page. If you’ve got a CMS website originally created by the UMC net team can have pre-populated this knowledge for you. However, it’s vital for you to review and update data as your website changes over time.

Title data
Title data is to blame for the page titles displayed at the highest of a browser window and because the headline inside program results. it’s the foremost vital data on your page.

For those with a CMS web site, the net team has developed an automatic system for making the meta title for every webpage supported your page title. This adds to the importance of victimization well-thought-out page titles wealthy with keyword phrases.

Description data
Description data is that the matter description that a browser might use in your page search come back. think about it as your site’s window display—a sententious and appealing description of what’s contained inside, with the goal of encouraging individuals to enter. a decent meta description can usually contain 2 full sentences. Search engines might not continually use your meta description, however it’s vital to convey them the choice.

Keyword data
Keyword data isn’t if ever wont to tabulate program rankings. However, you ought to already understand your keyword phrases, thus it does not hurt to feature them into your keyword data. you’ll be wanting to incorporate a spread of phrases. As a general rule, attempt to keep it to regarding 3-7 phrases with every phrase consisting of 1-4 words. a good example would be “computer science degree.”

4. Have a link-worthy website
Focus on making relevant links inside the text. rather than having “click here” links, strive writing out the name of the destination. “Click here” has no program worth on the far side the hooked up computer address, whereas “Michigan technical school Enterprise Program” is wealthy with keywords and can improve your program rankings moreover because the ranking of the page you’re linking to. continually use descriptive links by linking keywords—it not solely improves program improvement, however conjointly adds worth to your readers, together with those with disabilities or World Health Organization square measure victimization screen readers.

5. Use angular position tags
Always describe your visual and video media victimization angular position tags, or different text descriptions. they permit search engines to find your page, that is crucial—especially for people who use text-only browsers or screen readers.

These square measure solely a number of of the various ways for rising your program ranking. If you would like to find out additional, we have a tendency to advocate the subsequent resources:

Is Offshore Hosting Really Save for DMCA/Copyrights Contents

Many people as been asking this question Is Offshore Hosting Really Save for DMCA/Copyrights Contents?

Truly, many hosting providers promise this and failed to fulfill their promises. it might be had to get true Offshore for your DMCA/Copyrights contents without taking down the contents or your website. We offer 100% DMCA/Copyrights Take-down Requests Ignored(OFFSHORE) We ignored all coming request about any sites that’s using our OFFSHORE. We don’t even disturb you with any mail about this, and the great about this is our Offshore web hosting is highly cheap and reliable.

Feel free to contact us for any further assistants about this as we are always available.

How To Link My Blogspot Site To WordPress Blog

How To Link My Blogspot Site To WordPress Blog

What should & will be transferred?

Before we start, it would be nice to know a few details.

In a perfect world, you would go to one blog, click a button to export it, and it would magically appear on your self-hosted website. While it is still not possible, we at First Site Guide offer a substitution for the magic. Let us move your Blogger site to a self-hosted WordPress.

Unfortunately, it is not possible to transfer the entire site as it looks on Blogger. The style of your blog (theme, extensions, fonts, colors, widgets, etc.) will have to be added separately. You can only transfer the data:

  • Posts & Pages
  • Comments
  • Categories
  • Media
  • Permalinks
  • Feed
  • Authors
  • Traffic

Let’s start the transfer

Side Image

Alright, we are all set to go. While it definitely takes some time to perform each step correctly, moving your blog from Blogger to WordPress is not that hard even if you’re a complete beginner. Do not rush and do not skip steps.

1. Choose the best WordPress hosting

Since you are moving to a self-hosted WordPress, the first step would be finding a WordPress hosting company that will take care of your files. You will need to install WordPress on that host, and you will have to trust the company. You are starting a serious blog now, so you should not take this for granted.

There are dozens of hosting companies that are providing WordPress hosting services. Also, there are hundreds (if not more) websites that compare them. But before you hit the search button on Google or other search engines of your choice to start reading all the reviews, we should warn you that many sites & reviews are paid for. So, you will end up reading fake reviews and bogus opinions on a hosting company that paid to get listed as the best one.

To help you with that, we have thoroughly tested hosting companies and found the best one. If you want to start your self-hosted WordPress journey the right way, host your site with Abollyhost – the perfect solution for your new blog.

If this is your first time registering for a hosting account, we strongly suggest going through our detailed tutorial on how to start a blog which will show you how to open a Abollyhost account step by step.

2. Install WordPress

Congratulations! You have joined a family of millions of happy bloggers who trust their sites to Abollyhost. You will soon realize it was a clever choice. Now that your account is ready, you can move on and install WordPress.

Did we mention that Abollyhost loves WordPress users? Because of that, you get to install WordPress in just a few clicks of the mouse button:

  1. Log in to your Abollyhost cPanel account
  2. Please go to the Website section
  3. Select Install WordPress
  4. Click the Install button
  5. Choose the domain name to install it to (in the field next to it, you can enter a subfolder such as ‘blog’ or leave it blank if you want the site’s main page to be the blog)
  6. Now click “advanced options” if you want to change the email address, username, and password for the new WordPress installation
  7. Read through the license and service agreements and check the boxes if you agree with everything (you have to agree in order to continue)
  8. Click the Install Now button

This is definitely the easiest way of installing WordPress. If you’re just trying to move the blog as soon as possible, we recommend that option.

3. Export your blog from Blogger

This is it. It is finally time to export the data from your (let’s call it old) blog that you have started on Blogger. You will need to take all the data from it and store into a file. Don’t worry; you won’t have to create files manually or copy the data. There is actually a button you will need to click and everything will be done in a jiffy:

Overview Stats

  1. Log in to your Blogger account
  2. Go to Settings -> Other which will open the settings page
  3. On top of the page, find “Import & back up” section
  4. Find and click the “Back up Content” button
  5. A pop-up window will appear. Click “Save on your computer” button.

After clicking the button, Blogger will start downloading the XML file that contains all the important data from your blog. Depending on how much content you have, the file may be smaller or larger. You will end up having a file named blog with the date of export. For example: “blog-05-06-2018.xml”.

Locate the file (you can copy it to your desktop so you can find it more easily) and you are officially done with the export. This part wasn’t that scary, right?

4. Import the data to WordPress

If you haven’t skipped steps of this guide, you already have a hosting account and a WordPress site ready to be set up. Let’s import the data from Blogger to WordPress:

Dashboard

  1. Log in to your WordPress website
  2. Go to Tools -> Import
  3. Find Blogger on the list (it should be the first option, on top of the list)
  4. Click “Install now” link and wait for a few seconds for WordPress to finish installing the plugin

After the installation is complete, WordPress will show you a notification if the tool was installed successfully. The same notification will have the link to run the importer. Alternatively, you can click the link to Run Importer from the same spot where you found the install link.

Import

  1. Click “Run Importer” link
  2. On the new page, click “Choose File” button
  3. Search for the XML file you downloaded in the previous step (desktop or any other folder where you left it)
  4. If necessary (depending on the size of the file, your internet connection speed, and your host) wait for a few seconds until the file loads
  5. Click on “Upload file and import” button when possible

Again, depending on the various aspects, this might take a few seconds, so please be patient. When the import is complete, WordPress will show you a new page where you will need to assign the author to the imported posts. Let us show you how to do that in the next step.

4.1. Help, the file is too big to upload!

Usually, WordPress puts a limitation on the maximum file size you can upload. The limit might differ, but you can always manually increase if it necessary. If your exported file was simply too large, you will need to change the maximum upload size for WordPress. If you want to check your current upload limit, please go to Media -> Add New and find the information on the bottom of the screen.

Alright, let’s change that limit so you can import the blog without problems:

  1. Login to your Abollyhost Control Panel
  2. Open the File Manager
  3. Chose to go to the Web Root and click Go
  4. Scroll in the right-hand panel and find file php.ini -> right-click it
  5. Select Code Edit in the pop-up menu
  6. Click Edit at the bottom of the pop-up
  7. Use the keyboard shortcut to open the find pop-up window
  8. Windows and Linux: Ctrl + f
  9. Mac: Command (⌘) + f
  10. Type upload_max_filesize in the search field and hit enter
  11. This will highlight upload_max_filesize = 50M. Change 50M to the size you need. For example 128M
  12. Open the find pop-up, again and in the Search text field type post_max_size and press enter
  13. Highlighted will be post_max_size = 50M. This will need to be changed to the same number as what was put in for upload_max_filesize

Click Save changes

5. Assign an author

If you have had a lot of posts on your Blogger blog, it might be difficult to recognize them without changing authors. That’s especially true if you are importing the blog to a WordPress site that was already running. To help you with that, WordPress lets you reassign the author of the imported item to an existing user of the site.

WordPress will show a list of existing authors you can assign the content to.

If it’s a new site, you will probably have just one user that you created during the installation of the content management system. So, you can select the name for the list, and the content that you are importing will be automatically assigned to that user.

Import

But if you would like to separate the content from the new one that you are going to add, later on, you can also create a new user directly from this page. In that case, you can write the name of a new user. Its user role will be set to subscriber and password will be randomly generated. You can change the user details later on.

After deciding whom to assign the content to, click the “Submit” button and you are all done.

6. Setting up permalinks

The content is successfully imported, and you are one more step closer to having your entire Blogger blog added to your new self-hosted WordPress site. Permalinks are URLs that WordPress uses when organizing posts & pages.
Each post, page, media file, etc. have to have a unique permalink (the address) to work properly. Permalinks might have a huge impact on your site and SEO. And while you can set them up as you wish when starting a new website, we would suggest a different approach when importing a site from Blogger.

Blogger uses month & name to distinguish permalinks. So, if you go to any of your Blogger posts, you will see that it looks something like this: https://demoblog.blogspot. com/2018/05/this-is-post-title.html

In order to keep things in order, we suggest changing the permalink structure in WordPress to resemble that one in Blogger as much as possible:

Setting up permalinks

  1. Go to Settings -> Permalinks
  2. Choose “Month and Name” option
  3. Scroll down and click “Save changes” button

7. Redirect the old content to the new one

Here comes a very important part. If you have been running your Blogger blog for awhile, you must have had some impact on search engines. We also believe that you have been sharing new posts via social media, and have acquired some regular visits to the site. The worst thing that can happen if you move your blog is to neglect the old site and visitors that are still stopping by to the old address.

Blogger is Google’s child, so links to your Blogger blog are important for the SEO (search engine optimization). Even if you stop posting on the platform, the old links will still matter Google and other search engines.

Instead of losing all those visitors that decide to stop by the old blog, you should redirect them to the new self-hosted WordPress site you have just set up.

In order to make this work, you will need to set up the redirections both on your Blogger and WordPress site.

7.1. Redirect from Blogger

Themes

  1. Log in to your Blogger account
  2. Navigate to Themes
  3. Scroll all the way down and click on “Revert to classic themes”

Blogger will warn you about losing some of the features by reverting to classic themes. Since you are moving to self-hosted WordPress, you should not worry about this. By reverting, you will enable the option that will allow you to make the redirection possible.

As soon as you confirm that you want to revert to classic themes, Blogger will show you a new settings page. On the page, scroll down to “Edit Theme HTML” section where you get to see the code that powers up your current Blogger themes.

  • Select the entire code in the Edit Theme HTML
  • Delete the code that you have selected
  • Copy and paste the following:
    
    <html>
    <head>
    <title><$BlogPageTitle$></title>
    
    
    <script>
    <MainOrArchivePage>
    window.location.href="http://example.com/";
    </MainOrArchivePage>
    <Blogger>
    <ItemPage>
    window.location.href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"
    </ItemPage>
    </Blogger>
    </script>
    
    
    <MainPage>
    <link rel="canonical" href="http://example.com/" />
    </MainPage>
    
    
    <Blogger>
    <ItemPage>
    <link rel="canonical" href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"
    />
    </ItemPage>
    </Blogger>
    </head>
    
    
    <body>
    <MainOrArchivePage>
    <h1><a href="http://example.com/"><$BlogTitle$></a></h1>
    </MainOrArchivePage>
    <Blogger>
    <ItemPage>
    <h1><a
    href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>
    <$BlogItemBody$>
    </ItemPage>
    </Blogger>
    </body>
    </html>
    
    
  • Go through the code, and replace “http://example.com/” with the URL of your new domain. Check this twice because even the slightest typo will render the redirection useless
  • Click “Save theme” button.

If you already know how to install and use WordPress plugins, there is a nice plugin called Blogger to WordPress that will help you with this redirection part. If you install the plugin, it will help you generate the exact same code we showed you above and it will use your URL automatically so you don’t have to worry about messing up:

  • Install and activate the plugin
  • Go to Tools -> Blogger to WordPress Redirection
  • Click on Start Configuration button to generate code for your Blogger blog
  • You should see the name of your Blogger blog if you have imported it correctly
  • Click on “Get Code” button
  • Log in to your Blogger account
  • Navigate to Themes
  • Scroll all the way down and click on “Revert to classic themes”
  • Select the entire code in the Edit Theme HTML and delete it
  • Paste the code you have copied from the plugin

7.2. Redirect to your new WordPress blog

  • Paste the code you have copied from the plugin
  • Log in to your WordPress site
  • Navigate to Appearance -> Editor which will open the theme editor
  • On the right side menu, find “Theme Function” (functions.php file) which is usually on top of the list
  • Click on the file to start editing it. The code will load into the main window
  • Copy and paste the following code on the bottom of the file:
    function blogger_query_vars_filter($vars) {
    $vars[] = "blogger";
    return $vars;
    }
    
    add_filter('query_vars', 'blogger_query_vars_filter');
    
    function blogger_template_redirect() {
    global $wp_query;
    $blogger = $wp_query - > query_vars['blogger'];
    if (isset($blogger)) {
    wp_redirect(get_wordpress_url($blogger), 301);
    exit;
    }
    
    }
    add_action('template_redirect', 'blogger_template_redirect');
    
    function get_wordpress_url($blogger) {
    if (preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts)) {
    $query = new WP_Query(
    array("meta_key" = > "blogger_permalink", "meta_value" = > $url_parts[2]
    ) )
    ;
    if ($query - > have_posts()) {
    $query - > the_post();
    $url = get_permalink();
    }
    wp_reset_postdata();
    }
    return $url ? $url : home_url();
    }
    
    
  • Click “Update file” button on the bottom of the page

You do not need to change anything in this code. As soon as you click the “Update file” button, your current theme will get instructed to redirect users from Blogger to the exact post you previously imported into your new WordPress site.

Important note: If you decide to change the WordPress theme, you will have to repeat this step and copy the code to a Theme Functions file of the new theme.

7.3 Redirect Feeds

Unfortunately, we are still not done with the redirection part. We understand your pain; there are not many people in this world who love to go through time-consuming setups, but you will have to find that inner peace and focus for a few more minutes. Don’t forget that you are doing this to improve your blog.

If you have had RSS subscribers, they will not be able to tell that the migration happened. So, in order not to lose their trust, you will have to make another redirection and tell your Blogger blog that you have a new RSS feed.

Luckily, there’s no coding involved:

Other Settings

  • Go to your Blogger blog
  • Navigate to Settings -> Other
  • Find “Site Feed” section
  • Next to the “Post Feed Redirect URL”, click the “Add” link
  • Type in https://yoursite.com/feed/ and don’t forget to change the name of your site

Do not forget to save settings by clicking the button on the top-right corner of the page

This is it! The redirections are finally over and both the posts and RSS feed are linking back to your self-hosted WordPress site.

It’s time for testing

Side Image

If you have followed the steps, you have also successfully migrated your blog from Blogger to WordPress. Congratulations! Just to make sure that everything went smoothly, we suggest that you do some tests.

Go to any of your old Blogger posts and try to reload them. If everything was ok, you should now be redirected to the corresponding WordPress post! You can repeat the test and try opening a few more posts to make sure there are no problems. If you are not being redirected automatically, go back to the Redirect section and make sure you did everything correctly:

  • Check if you have copied the entire code
  • Check if you replaced the URL of your site in all the places and if you have you edited the right functions.php file.
  • If you are using an RSS reader, you can also test the RSS feed for redirections by clicking on the link to one of your posts. It should now lead to the WordPress site.

What about my images?

Side Image

Usually, WordPress will automatically import the images to the WordPress Media Library. If you had images in a post, it will automatically appear in the same post on your new WordPress site. But don’t take it for granted. Sometimes, the Importer might miss importing some of your images, or the imported images might not be linked correctly.

If that is the case with your new blog, you can still resolve the issue quite quickly.

Before you start to panic, check your Media Library Media Library:

  1. Go to Media -> Library
  2. Check if your old images are visible here
  3. If the images are there, check if their link to the host instead of blogger.com. Click on the image and check the URL field to see if it’s pointing back to Blogger or your new domain

Missing images

If the Importer missed uploading images, you can still quickly get them on your new WordPress blog. You will have to install a plugin that will take care of that.

We don’t usually recommend outdated plugins, but this one is still great for the job.

  1. Go to Plugins -> Add New
  2. Search for “Import external attachments”
  3. Install and activate the plugin
  4. Go to Media -> Import attachments

If there are any images that the Importer hasn’t imported yet, the plugin will link them on the page. All you have to do here is to click “Import attachments now” button. The plugin can import 50 images at the time, so allow some time until all the images get added to the library.

Wrong image URLs

Sometimes, users might have their images imported to the Media Library without problems. But, in order for the images to show correctly, they have to point to the right address. In some cases, although the images are on your new host, your post and pages might still try to load the old ones (that are found on your old Blogger blog).
Velvet Blues Updated Urls

  • Go to Plugins -> Add New
  • Search for “Velvet Blues Update URLs
  • Install and activate the plugin
  • Go to Tools-> Update URLs to configure plugin’s settings

On the settings page, you should enter your old URL (for example https://yourblog.blogspot.com/) and the new URL (for example https://yournewsite.com/). You can leave the rest of the settings checked by default. Double check the URLs and other settings, and click “Update URLs now” button.

The plugin will then search for all instances of your old URL and switch them to the new one. You will be done in a minute, and all the URLs will be updated to the right one.

What to do next?

Side Image

Your blog has finally been completely moved from Blogger to WordPress. Hopefully, you have checked it and everything works fine from the first take. If not, we suggest going through the steps one more time to see if you missed something. The whole migration process is not very demanding, but it definitely takes time and patience to complete.

If everything went smoothly for you, here’s what you could do next:

  • Keep your old blog on Blogger live. Don’t delete it as the redirection won’t work
  • Check the imported posts for errors. Sometimes, formatting of a post might get messed up so you will have to remove unnecessary spaces or broken links
  • Start exploring WordPress and learn more about it
  • Search for a WordPress theme that will represent your blog. Don’t forget to edit the Theme Functions file if you change the theme
  • Check some of the best plugins you can install
How To Link My Blogspot Site To WordPress Blog

How To Link My Blogspot Site To WordPress Blog

What should & will be transferred?

Before we start, it would be nice to know a few details.

In a perfect world, you would go to one blog, click a button to export it, and it would magically appear on your self-hosted website. While it is still not possible, we at First Site Guide offer a substitution for the magic. Let us move your Blogger site to a self-hosted WordPress.

Unfortunately, it is not possible to transfer the entire site as it looks on Blogger. The style of your blog (theme, extensions, fonts, colors, widgets, etc.) will have to be added separately. You can only transfer the data:

  • Posts & Pages
  • Comments
  • Categories
  • Media
  • Permalinks
  • Feed
  • Authors
  • Traffic

Let’s start the transfer

Side Image

Alright, we are all set to go. While it definitely takes some time to perform each step correctly, moving your blog from Blogger to WordPress is not that hard even if you’re a complete beginner. Do not rush and do not skip steps.

1. Choose the best WordPress hosting

Since you are moving to a self-hosted WordPress, the first step would be finding a WordPress hosting company that will take care of your files. You will need to install WordPress on that host, and you will have to trust the company. You are starting a serious blog now, so you should not take this for granted.

There are dozens of hosting companies that are providing WordPress hosting services. Also, there are hundreds (if not more) websites that compare them. But before you hit the search button on Google or other search engines of your choice to start reading all the reviews, we should warn you that many sites & reviews are paid for. So, you will end up reading fake reviews and bogus opinions on a hosting company that paid to get listed as the best one.

To help you with that, we have thoroughly tested hosting companies and found the best one. If you want to start your self-hosted WordPress journey the right way, host your site with Abollyhost – the perfect solution for your new blog.

If this is your first time registering for a hosting account, we strongly suggest going through our detailed tutorial on how to start a blog which will show you how to open a Abollyhost account step by step.

2. Install WordPress

Congratulations! You have joined a family of millions of happy bloggers who trust their sites to Abollyhost. You will soon realize it was a clever choice. Now that your account is ready, you can move on and install WordPress.

Did we mention that Abollyhost loves WordPress users? Because of that, you get to install WordPress in just a few clicks of the mouse button:

  1. Log in to your Abollyhost cPanel account
  2. Please go to the Website section
  3. Select Install WordPress
  4. Click the Install button
  5. Choose the domain name to install it to (in the field next to it, you can enter a subfolder such as ‘blog’ or leave it blank if you want the site’s main page to be the blog)
  6. Now click “advanced options” if you want to change the email address, username, and password for the new WordPress installation
  7. Read through the license and service agreements and check the boxes if you agree with everything (you have to agree in order to continue)
  8. Click the Install Now button

This is definitely the easiest way of installing WordPress. If you’re just trying to move the blog as soon as possible, we recommend that option.

3. Export your blog from Blogger

This is it. It is finally time to export the data from your (let’s call it old) blog that you have started on Blogger. You will need to take all the data from it and store into a file. Don’t worry; you won’t have to create files manually or copy the data. There is actually a button you will need to click and everything will be done in a jiffy:

Overview Stats

  1. Log in to your Blogger account
  2. Go to Settings -> Other which will open the settings page
  3. On top of the page, find “Import & back up” section
  4. Find and click the “Back up Content” button
  5. A pop-up window will appear. Click “Save on your computer” button.

After clicking the button, Blogger will start downloading the XML file that contains all the important data from your blog. Depending on how much content you have, the file may be smaller or larger. You will end up having a file named blog with the date of export. For example: “blog-05-06-2018.xml”.

Locate the file (you can copy it to your desktop so you can find it more easily) and you are officially done with the export. This part wasn’t that scary, right?

4. Import the data to WordPress

If you haven’t skipped steps of this guide, you already have a hosting account and a WordPress site ready to be set up. Let’s import the data from Blogger to WordPress:

Dashboard

  1. Log in to your WordPress website
  2. Go to Tools -> Import
  3. Find Blogger on the list (it should be the first option, on top of the list)
  4. Click “Install now” link and wait for a few seconds for WordPress to finish installing the plugin

After the installation is complete, WordPress will show you a notification if the tool was installed successfully. The same notification will have the link to run the importer. Alternatively, you can click the link to Run Importer from the same spot where you found the install link.

Import

  1. Click “Run Importer” link
  2. On the new page, click “Choose File” button
  3. Search for the XML file you downloaded in the previous step (desktop or any other folder where you left it)
  4. If necessary (depending on the size of the file, your internet connection speed, and your host) wait for a few seconds until the file loads
  5. Click on “Upload file and import” button when possible

Again, depending on the various aspects, this might take a few seconds, so please be patient. When the import is complete, WordPress will show you a new page where you will need to assign the author to the imported posts. Let us show you how to do that in the next step.

4.1. Help, the file is too big to upload!

Usually, WordPress puts a limitation on the maximum file size you can upload. The limit might differ, but you can always manually increase if it necessary. If your exported file was simply too large, you will need to change the maximum upload size for WordPress. If you want to check your current upload limit, please go to Media -> Add New and find the information on the bottom of the screen.

Alright, let’s change that limit so you can import the blog without problems:

  1. Login to your Abollyhost Control Panel
  2. Open the File Manager
  3. Chose to go to the Web Root and click Go
  4. Scroll in the right-hand panel and find file php.ini -> right-click it
  5. Select Code Edit in the pop-up menu
  6. Click Edit at the bottom of the pop-up
  7. Use the keyboard shortcut to open the find pop-up window
  8. Windows and Linux: Ctrl + f
  9. Mac: Command (⌘) + f
  10. Type upload_max_filesize in the search field and hit enter
  11. This will highlight upload_max_filesize = 50M. Change 50M to the size you need. For example 128M
  12. Open the find pop-up, again and in the Search text field type post_max_size and press enter
  13. Highlighted will be post_max_size = 50M. This will need to be changed to the same number as what was put in for upload_max_filesize

Click Save changes

5. Assign an author

If you have had a lot of posts on your Blogger blog, it might be difficult to recognize them without changing authors. That’s especially true if you are importing the blog to a WordPress site that was already running. To help you with that, WordPress lets you reassign the author of the imported item to an existing user of the site.

WordPress will show a list of existing authors you can assign the content to.

If it’s a new site, you will probably have just one user that you created during the installation of the content management system. So, you can select the name for the list, and the content that you are importing will be automatically assigned to that user.

Import

But if you would like to separate the content from the new one that you are going to add, later on, you can also create a new user directly from this page. In that case, you can write the name of a new user. Its user role will be set to subscriber and password will be randomly generated. You can change the user details later on.

After deciding whom to assign the content to, click the “Submit” button and you are all done.

6. Setting up permalinks

The content is successfully imported, and you are one more step closer to having your entire Blogger blog added to your new self-hosted WordPress site. Permalinks are URLs that WordPress uses when organizing posts & pages.
Each post, page, media file, etc. have to have a unique permalink (the address) to work properly. Permalinks might have a huge impact on your site and SEO. And while you can set them up as you wish when starting a new website, we would suggest a different approach when importing a site from Blogger.

Blogger uses month & name to distinguish permalinks. So, if you go to any of your Blogger posts, you will see that it looks something like this: https://demoblog.blogspot. com/2018/05/this-is-post-title.html

In order to keep things in order, we suggest changing the permalink structure in WordPress to resemble that one in Blogger as much as possible:

Setting up permalinks

  1. Go to Settings -> Permalinks
  2. Choose “Month and Name” option
  3. Scroll down and click “Save changes” button

7. Redirect the old content to the new one

Here comes a very important part. If you have been running your Blogger blog for awhile, you must have had some impact on search engines. We also believe that you have been sharing new posts via social media, and have acquired some regular visits to the site. The worst thing that can happen if you move your blog is to neglect the old site and visitors that are still stopping by to the old address.

Blogger is Google’s child, so links to your Blogger blog are important for the SEO (search engine optimization). Even if you stop posting on the platform, the old links will still matter Google and other search engines.

Instead of losing all those visitors that decide to stop by the old blog, you should redirect them to the new self-hosted WordPress site you have just set up.

In order to make this work, you will need to set up the redirections both on your Blogger and WordPress site.

7.1. Redirect from Blogger

Themes

  1. Log in to your Blogger account
  2. Navigate to Themes
  3. Scroll all the way down and click on “Revert to classic themes”

Blogger will warn you about losing some of the features by reverting to classic themes. Since you are moving to self-hosted WordPress, you should not worry about this. By reverting, you will enable the option that will allow you to make the redirection possible.

As soon as you confirm that you want to revert to classic themes, Blogger will show you a new settings page. On the page, scroll down to “Edit Theme HTML” section where you get to see the code that powers up your current Blogger themes.

  • Select the entire code in the Edit Theme HTML
  • Delete the code that you have selected
  • Copy and paste the following:
    
    <html>
    <head>
    <title><$BlogPageTitle$></title>
    
    
    <script>
    <MainOrArchivePage>
    window.location.href="http://example.com/";
    </MainOrArchivePage>
    <Blogger>
    <ItemPage>
    window.location.href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"
    </ItemPage>
    </Blogger>
    </script>
    
    
    <MainPage>
    <link rel="canonical" href="http://example.com/" />
    </MainPage>
    
    
    <Blogger>
    <ItemPage>
    <link rel="canonical" href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"
    />
    </ItemPage>
    </Blogger>
    </head>
    
    
    <body>
    <MainOrArchivePage>
    <h1><a href="http://example.com/"><$BlogTitle$></a></h1>
    </MainOrArchivePage>
    <Blogger>
    <ItemPage>
    <h1><a
    href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>
    <$BlogItemBody$>
    </ItemPage>
    </Blogger>
    </body>
    </html>
    
    
  • Go through the code, and replace “http://example.com/” with the URL of your new domain. Check this twice because even the slightest typo will render the redirection useless
  • Click “Save theme” button.

If you already know how to install and use WordPress plugins, there is a nice plugin called Blogger to WordPress that will help you with this redirection part. If you install the plugin, it will help you generate the exact same code we showed you above and it will use your URL automatically so you don’t have to worry about messing up:

  • Install and activate the plugin
  • Go to Tools -> Blogger to WordPress Redirection
  • Click on Start Configuration button to generate code for your Blogger blog
  • You should see the name of your Blogger blog if you have imported it correctly
  • Click on “Get Code” button
  • Log in to your Blogger account
  • Navigate to Themes
  • Scroll all the way down and click on “Revert to classic themes”
  • Select the entire code in the Edit Theme HTML and delete it
  • Paste the code you have copied from the plugin

7.2. Redirect to your new WordPress blog

  • Paste the code you have copied from the plugin
  • Log in to your WordPress site
  • Navigate to Appearance -> Editor which will open the theme editor
  • On the right side menu, find “Theme Function” (functions.php file) which is usually on top of the list
  • Click on the file to start editing it. The code will load into the main window
  • Copy and paste the following code on the bottom of the file:
    function blogger_query_vars_filter($vars) {
    $vars[] = "blogger";
    return $vars;
    }
    
    add_filter('query_vars', 'blogger_query_vars_filter');
    
    function blogger_template_redirect() {
    global $wp_query;
    $blogger = $wp_query - > query_vars['blogger'];
    if (isset($blogger)) {
    wp_redirect(get_wordpress_url($blogger), 301);
    exit;
    }
    
    }
    add_action('template_redirect', 'blogger_template_redirect');
    
    function get_wordpress_url($blogger) {
    if (preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts)) {
    $query = new WP_Query(
    array("meta_key" = > "blogger_permalink", "meta_value" = > $url_parts[2]
    ) )
    ;
    if ($query - > have_posts()) {
    $query - > the_post();
    $url = get_permalink();
    }
    wp_reset_postdata();
    }
    return $url ? $url : home_url();
    }
    
    
  • Click “Update file” button on the bottom of the page

You do not need to change anything in this code. As soon as you click the “Update file” button, your current theme will get instructed to redirect users from Blogger to the exact post you previously imported into your new WordPress site.

Important note: If you decide to change the WordPress theme, you will have to repeat this step and copy the code to a Theme Functions file of the new theme.

7.3 Redirect Feeds

Unfortunately, we are still not done with the redirection part. We understand your pain; there are not many people in this world who love to go through time-consuming setups, but you will have to find that inner peace and focus for a few more minutes. Don’t forget that you are doing this to improve your blog.

If you have had RSS subscribers, they will not be able to tell that the migration happened. So, in order not to lose their trust, you will have to make another redirection and tell your Blogger blog that you have a new RSS feed.

Luckily, there’s no coding involved:

Other Settings

  • Go to your Blogger blog
  • Navigate to Settings -> Other
  • Find “Site Feed” section
  • Next to the “Post Feed Redirect URL”, click the “Add” link
  • Type in https://yoursite.com/feed/ and don’t forget to change the name of your site

Do not forget to save settings by clicking the button on the top-right corner of the page

This is it! The redirections are finally over and both the posts and RSS feed are linking back to your self-hosted WordPress site.

It’s time for testing

Side Image

If you have followed the steps, you have also successfully migrated your blog from Blogger to WordPress. Congratulations! Just to make sure that everything went smoothly, we suggest that you do some tests.

Go to any of your old Blogger posts and try to reload them. If everything was ok, you should now be redirected to the corresponding WordPress post! You can repeat the test and try opening a few more posts to make sure there are no problems. If you are not being redirected automatically, go back to the Redirect section and make sure you did everything correctly:

  • Check if you have copied the entire code
  • Check if you replaced the URL of your site in all the places and if you have you edited the right functions.php file.
  • If you are using an RSS reader, you can also test the RSS feed for redirections by clicking on the link to one of your posts. It should now lead to the WordPress site.

What about my images?

Side Image

Usually, WordPress will automatically import the images to the WordPress Media Library. If you had images in a post, it will automatically appear in the same post on your new WordPress site. But don’t take it for granted. Sometimes, the Importer might miss importing some of your images, or the imported images might not be linked correctly.

If that is the case with your new blog, you can still resolve the issue quite quickly.

Before you start to panic, check your Media Library Media Library:

  1. Go to Media -> Library
  2. Check if your old images are visible here
  3. If the images are there, check if their link to the host instead of blogger.com. Click on the image and check the URL field to see if it’s pointing back to Blogger or your new domain

Missing images

If the Importer missed uploading images, you can still quickly get them on your new WordPress blog. You will have to install a plugin that will take care of that.

We don’t usually recommend outdated plugins, but this one is still great for the job.

  1. Go to Plugins -> Add New
  2. Search for “Import external attachments”
  3. Install and activate the plugin
  4. Go to Media -> Import attachments

If there are any images that the Importer hasn’t imported yet, the plugin will link them on the page. All you have to do here is to click “Import attachments now” button. The plugin can import 50 images at the time, so allow some time until all the images get added to the library.

Wrong image URLs

Sometimes, users might have their images imported to the Media Library without problems. But, in order for the images to show correctly, they have to point to the right address. In some cases, although the images are on your new host, your post and pages might still try to load the old ones (that are found on your old Blogger blog).
Velvet Blues Updated Urls

  • Go to Plugins -> Add New
  • Search for “Velvet Blues Update URLs
  • Install and activate the plugin
  • Go to Tools-> Update URLs to configure plugin’s settings

On the settings page, you should enter your old URL (for example https://yourblog.blogspot.com/) and the new URL (for example https://yournewsite.com/). You can leave the rest of the settings checked by default. Double check the URLs and other settings, and click “Update URLs now” button.

The plugin will then search for all instances of your old URL and switch them to the new one. You will be done in a minute, and all the URLs will be updated to the right one.

What to do next?

Side Image

Your blog has finally been completely moved from Blogger to WordPress. Hopefully, you have checked it and everything works fine from the first take. If not, we suggest going through the steps one more time to see if you missed something. The whole migration process is not very demanding, but it definitely takes time and patience to complete.

If everything went smoothly for you, here’s what you could do next:

  • Keep your old blog on Blogger live. Don’t delete it as the redirection won’t work
  • Check the imported posts for errors. Sometimes, formatting of a post might get messed up so you will have to remove unnecessary spaces or broken links
  • Start exploring WordPress and learn more about it
  • Search for a WordPress theme that will represent your blog. Don’t forget to edit the Theme Functions file if you change the theme
  • Check some of the best plugins you can install
How To Stop Receiving Spam Comments On Your WordPress Blog

How To Stop Receiving Spam Comments On Your WordPress Blog

Unfortunately, comment spam is a fact of life on the internet. If you enable comments on your website, you will have to deal with spammers. To prevent your site from making a poor first impression, you’ll need to find a way to stop comment spam in its tracks.

While you may never be able to eliminate spam entirely, you can do a lot to slow it down. For WordPress users, there are plenty of simple tweaks you can perform that will block or hide these comments before your visitors see them. You can even use a robust anti-spam plugin to tighten your defenses.

In this post, we’ll talk a little about what comment spam is and why it happens. Then we’ll show you six easy ways to stop comment spam on your WordPress site. Let’s take a look!

What comment spam is (and why it’s such a problem)

” alt=”” aria-hidden=”true” />An example of spam comments in WordPress.

Spam comments are often easily recognized by their generic content.

If you permit comments on your site, you’re bound to get some comment spam. As your site grows more popular, that spam is likely to become an even larger issue. There are many types of comment spam these days, but most of it is automated, posted by spam bots that use short, generic messages as a cover for including links.

Whatever form it takes, comment spam is a real problem because:

  • When your comment sections are filled up with spam messages, it’s harder for legitimate visitors to have conversations.
  • Leaving spam comments on your content makes your site look unprofessional.
  • A lot of these comments include malicious links, designed to trick visitors into giving away personal information.

Clearly, it’s vital to do everything you can to stop comment spam from appearing on your WordPress site. Fortunately, this isn’t difficult to do once you know the right techniques.

How to stop comment spam on your WordPress website (5 simple solutions)

The following six solutions are all smart ways to stop comment spam on your website. You can try all of these methods, or pick and choose the ones that are most relevant to your needs.

1. Reduce the number of links allowed per post

As we mentioned earlier, most comment spam is designed to add links in your comment section and trick people into clicking on them. Therefore, one way to combat spam is to permit fewer links in your comments. Legitimate visitors will also be prevented from posting many links, but slowing down the spammers can be worth that potential inconvenience.

From your WordPress dashboard, you can navigate to Settings → Discussion to make this change. Look for the Comment Moderation section:

” alt=”” aria-hidden=”true” />Changing the number of links allowed per comment in WordPress.

Here you can decide how many links will be permitted in a comment before it is flagged for moderation. You can even reduce the number to zero if you want to require moderation for any comment with links.

2. Create a list of ‘blacklisted’ words

Many spam comments contain a lot of recognizable keywords. This makes it easier to spot them and to stop them from appearing on your website. You can simply create a ‘blacklist’ of words, and your site will flag any comment containing one of them.

To do this, return to Settings → Discussion in your WordPress dashboard and find the Comment Blacklist section:

” alt=”” aria-hidden=”true” />Creating a comment blacklist in WordPress is a good way to stop comment spam

Here, you can enter your list of words. When any comment is posted that contains one of those words, it will be sent straight to the trash. Of course, it’s important to choose the words in your blacklist carefully, so you don’t delete comments by legitimate posters. For suggestions, you can check out the recommended comment blacklist for WordPress on GitHub.

3. Restrict comment privileges to registered users

The goal of most spammers is to post on as many pages and sites as possible. This means if you can make it more challenging for them to add their comments to your site, they may just move on to the next target.

You can achieve this by restricting comment privileges to people who have registered on your site. This puts an extra hurdle between spammers and your comment section. As a side benefit, it encourages visitors to sign up for an account or a membership.

This option is also available in the Settings → Discussion section in WordPress. You’ll find it under Other comment settings:

” alt=”” aria-hidden=”true” />The Other Comment Settings section in WordPress.

Simply check the box labeled Users must be registered and logged in to comment, and save your changes.

4. Set up a comment moderation system

In a nutshell, comment moderation is when you require some or all comments to be approved by a person before they are permitted to appear on your site. If you have the time and resources to spare, this can be a smart strategy.

In WordPress, you can enable a comment moderation system very easily. Simply go back to Settings → Discussion, and check out the Before a comment appears section:

” alt=”” aria-hidden=”true” />Setting up a comment moderation system in WordPress.

By selecting Comment must be manually approved, any comments made on your site will be held as Pending until they are reviewed. You can then check out each one, and decide whether to let it through or trash it. You can find more advice on setting up a comment moderation system in the WordPress Codex.

5. Use an anti-spam plugin

Finally, we would be remiss not to mention anti-spam plugins. These tools can present a powerful way to stop comment spam and can take care of sorting the good comments from the bad for you.

Many WordPress installations come with Akismet bundled in, and for good reason:

This anti-spam plugin connects to a constantly updated database of spam, so it’s very proficient at recognizing which comments are trouble and filtering them out. It also enables you to see what comments have been flagged.

Akismet is a solid option for most users, but there are plenty of excellent alternatives. For example, Antispam Bee is a well-reviewed plugin with a lot of customizable settings and features. Whatever plugin you choose, you’ll be taking an important step to stop comment spam on your website.

6. Move to a new comments system (like Disqus)

This method won’t work for all sites, but some third-party comment systems, like Disqus, can help eliminate most of the spam for you. Disqus is actually what we use here at ThemeIsle (you can scroll down and leave a comment on this post to see it in action!). Another option is to use Facebook comments on your site.

If you’re interested either of these options, check out our post on WordPress comment plugins.

Conclusion

Spam comments can quickly clutter up your site, making it look unprofessional and driving real visitors away. Cleaning up all that spam after the fact is challenging. This means you should strongly consider putting a little upfront time into developing a strong anti-spam strategy.

To stop comment spam on your WordPress site, you can:

  1. Reduce the number of links allowed per post
  2. Create a list of ‘blacklisted’ words
  3. Set up a comment moderation system
  4. Restrict comment privileges to registered users
  5. Use an anti-spam plugin, such as Akismet.
  6. Move to a third-party comments plugin
How To Stop Receiving Spam Comments On Your WordPress Blog

How To Stop Receiving Spam Comments On Your WordPress Blog

Unfortunately, comment spam is a fact of life on the internet. If you enable comments on your website, you will have to deal with spammers. To prevent your site from making a poor first impression, you’ll need to find a way to stop comment spam in its tracks.

While you may never be able to eliminate spam entirely, you can do a lot to slow it down. For WordPress users, there are plenty of simple tweaks you can perform that will block or hide these comments before your visitors see them. You can even use a robust anti-spam plugin to tighten your defenses.

In this post, we’ll talk a little about what comment spam is and why it happens. Then we’ll show you six easy ways to stop comment spam on your WordPress site. Let’s take a look!

What comment spam is (and why it’s such a problem)

” alt=”” aria-hidden=”true” />An example of spam comments in WordPress.

Spam comments are often easily recognized by their generic content.

If you permit comments on your site, you’re bound to get some comment spam. As your site grows more popular, that spam is likely to become an even larger issue. There are many types of comment spam these days, but most of it is automated, posted by spam bots that use short, generic messages as a cover for including links.

Whatever form it takes, comment spam is a real problem because:

  • When your comment sections are filled up with spam messages, it’s harder for legitimate visitors to have conversations.
  • Leaving spam comments on your content makes your site look unprofessional.
  • A lot of these comments include malicious links, designed to trick visitors into giving away personal information.

Clearly, it’s vital to do everything you can to stop comment spam from appearing on your WordPress site. Fortunately, this isn’t difficult to do once you know the right techniques.

How to stop comment spam on your WordPress website (5 simple solutions)

The following six solutions are all smart ways to stop comment spam on your website. You can try all of these methods, or pick and choose the ones that are most relevant to your needs.

1. Reduce the number of links allowed per post

As we mentioned earlier, most comment spam is designed to add links in your comment section and trick people into clicking on them. Therefore, one way to combat spam is to permit fewer links in your comments. Legitimate visitors will also be prevented from posting many links, but slowing down the spammers can be worth that potential inconvenience.

From your WordPress dashboard, you can navigate to Settings → Discussion to make this change. Look for the Comment Moderation section:

” alt=”” aria-hidden=”true” />Changing the number of links allowed per comment in WordPress.

Here you can decide how many links will be permitted in a comment before it is flagged for moderation. You can even reduce the number to zero if you want to require moderation for any comment with links.

2. Create a list of ‘blacklisted’ words

Many spam comments contain a lot of recognizable keywords. This makes it easier to spot them and to stop them from appearing on your website. You can simply create a ‘blacklist’ of words, and your site will flag any comment containing one of them.

To do this, return to Settings → Discussion in your WordPress dashboard and find the Comment Blacklist section:

” alt=”” aria-hidden=”true” />Creating a comment blacklist in WordPress is a good way to stop comment spam

Here, you can enter your list of words. When any comment is posted that contains one of those words, it will be sent straight to the trash. Of course, it’s important to choose the words in your blacklist carefully, so you don’t delete comments by legitimate posters. For suggestions, you can check out the recommended comment blacklist for WordPress on GitHub.

3. Restrict comment privileges to registered users

The goal of most spammers is to post on as many pages and sites as possible. This means if you can make it more challenging for them to add their comments to your site, they may just move on to the next target.

You can achieve this by restricting comment privileges to people who have registered on your site. This puts an extra hurdle between spammers and your comment section. As a side benefit, it encourages visitors to sign up for an account or a membership.

This option is also available in the Settings → Discussion section in WordPress. You’ll find it under Other comment settings:

” alt=”” aria-hidden=”true” />The Other Comment Settings section in WordPress.

Simply check the box labeled Users must be registered and logged in to comment, and save your changes.

4. Set up a comment moderation system

In a nutshell, comment moderation is when you require some or all comments to be approved by a person before they are permitted to appear on your site. If you have the time and resources to spare, this can be a smart strategy.

In WordPress, you can enable a comment moderation system very easily. Simply go back to Settings → Discussion, and check out the Before a comment appears section:

” alt=”” aria-hidden=”true” />Setting up a comment moderation system in WordPress.

By selecting Comment must be manually approved, any comments made on your site will be held as Pending until they are reviewed. You can then check out each one, and decide whether to let it through or trash it. You can find more advice on setting up a comment moderation system in the WordPress Codex.

5. Use an anti-spam plugin

Finally, we would be remiss not to mention anti-spam plugins. These tools can present a powerful way to stop comment spam and can take care of sorting the good comments from the bad for you.

Many WordPress installations come with Akismet bundled in, and for good reason:

This anti-spam plugin connects to a constantly updated database of spam, so it’s very proficient at recognizing which comments are trouble and filtering them out. It also enables you to see what comments have been flagged.

Akismet is a solid option for most users, but there are plenty of excellent alternatives. For example, Antispam Bee is a well-reviewed plugin with a lot of customizable settings and features. Whatever plugin you choose, you’ll be taking an important step to stop comment spam on your website.

6. Move to a new comments system (like Disqus)

This method won’t work for all sites, but some third-party comment systems, like Disqus, can help eliminate most of the spam for you. Disqus is actually what we use here at ThemeIsle (you can scroll down and leave a comment on this post to see it in action!). Another option is to use Facebook comments on your site.

If you’re interested either of these options, check out our post on WordPress comment plugins.

Conclusion

Spam comments can quickly clutter up your site, making it look unprofessional and driving real visitors away. Cleaning up all that spam after the fact is challenging. This means you should strongly consider putting a little upfront time into developing a strong anti-spam strategy.

To stop comment spam on your WordPress site, you can:

  1. Reduce the number of links allowed per post
  2. Create a list of ‘blacklisted’ words
  3. Set up a comment moderation system
  4. Restrict comment privileges to registered users
  5. Use an anti-spam plugin, such as Akismet.
  6. Move to a third-party comments plugin

How to force download media files on wordpress

Hello guys,

For those of you that want to add the features of auto downloading to your wordpress website, for your users to be able to download any media files.

CHECK: Introduction to Blogging what you should know before get started

  • Login to your cPanel
  • Click on file manager
  • open puublic_html folder
  • make sure, your hidden files is visible
  • Then, add the below code to your .htaccess file
  • <FilesMatch ".(mov|mp3|jpg|pdf|mp4)$">
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </FilesMatch>

    ForceType application/octet-stream
    Header set Content-Disposition attachment
  • Save it and it should be working fine.

ALSO CHECK:  How to Move WordPress from a Subfolder to the Root Directory(Opens in a new browser tab)

If you face any error on this, feel free to drop comment and we are always here to provide help.

How to force download media files on wordpress

Hello guys,

For those of you that want to add the features of auto downloading to your wordpress website, for your users to be able to download any media files.

CHECK: Introduction to Blogging what you should know before get started

  • Login to your cPanel
  • Click on file manager
  • open puublic_html folder
  • make sure, your hidden files is visible
  • Then, add the below code to your .htaccess file
  • <FilesMatch ".(mov|mp3|jpg|pdf|mp4)$">
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </FilesMatch>

    ForceType application/octet-stream
    Header set Content-Disposition attachment
  • Save it and it should be working fine.

ALSO CHECK:  How to Move WordPress from a Subfolder to the Root Directory(Opens in a new browser tab)

If you face any error on this, feel free to drop comment and we are always here to provide help.

Having Issue With “Wp Redirection” ( How to Fix It) – 2019

Having Issue With “Wp Redirection” ( How to Fix It) – 2019

WP help

Here are some frequently asked questions:

I deleted a redirection, why is it still redirecting?

Your browser will cache redirections. If you have deleted a redirection and your browser is still performing the redirection then clear your browser cache.

Can I open a redirect in a new tab?

It’s not possible to do this on the server, whether using Redirection or otherwise . Instead you will need to add target="_blank" to your link.

Can I redirect an anchor (#)?

No, the anchor is not sent in the request and is not received by the server. You will need to do any redirections on the client using JavaScript.

Can I redirect all 404 errors?

No, and it isn’t advised that you do so. A 404 error is the correct response to return for a page that doesn’t exist. If you redirect it you are indicating that it once existed, and this could dilute your site.

Use a plugin like 404 Page to improve your error pages.

I get a lot of weird URLs in my 404 log, what should I do?

Redirection reports on your site but doesn’t add any interpretation of why stuff is happening.

You can use the log information, such as IP, user agent, and referrer, as well as your own personal knowledge of the site, to understand the requests more. If they are coming from your own site then you should fix any bad links that causing the requests. If they are coming from another site then you can ask the other site to update their links.

Sometimes the requests are made by bots, and there is nothing you can do about this other than blocking their IP address.

The 404 log is not a todo list and you shouldn’t think you need to ‘fix’ it. A 404 is a valid response for a page that doesn’t exist and has never existed.

I’m trying to redirect a PDF and it doesn’t work

Your web server is probably configured to handle PDF files directly rather than pass the request through to PHP and WordPress.

If you are trying to redirect a PDF file that still exists then you should delete the file, and your web server will likely then pass the request through to WordPress.

If this still doesn’t work then you will need to save the redirect to Apache .htaccess.

I’m trying to redirect a .html/.php / .aspx file and it doesn’t work

Please see the above FAQ for PDF files – the same solution applies.

How do I give access to non-administrators?

You can use the redirection_role filter to create your own plugin that is specific to your setup. You will need to create a file in your wp-content/plugins directory with the following code:


<?php
/*
Plugin Name: Allow Redirection Access
Description: Allow access to Redirection
Version: 0.1
*/
add_filter( 'redirection_role', function( $role ) {
return 'edit_posts';
} );

This would allow editors to have access to Redirection. You can use any capability  (although really you shouldn’t make it available for anonymous users!).

Please remember to activate the plugin.