Thursday, July 7, 2022

How to Disable Directory Browsing in WordPress

Do you want to disable directory browsing in WordPress?

Directory browsing can put your site at risk by showing important information to hackers which can be used to exploit vulnerabilities in your site’s plugins, themes, or even your hosting server.

In this article, we will show you how you can disable directory browsing in WordPress.

How to disable directory browsing in WordPress

What Does Disabling Directory Browsing in WordPress Do?

Every time someone visits your website, your web server will process that request.

Usually, the server delivers an index file to the visitor’s browser, such as index.html. However, if the server can’t find an index file, then it may show all the files and folders in the requested directory instead.

This is directory browsing, and it’s often enabled by default.

If you’ve ever visited a site and seen a list of files and folders instead of a webpage, then you’ve seen directory browsing in action.

A WordPress site with directory browsing enabled

The problem is that hackers can use directory browsing to see the files that make up your website, including all the themes and plugins that you’re using.

If any of these themes or plugins have known vulnerabilities, then hackers can use this knowledge to take control of your WordPress blog or website, steal your data, or perform other actions.

Attackers may also use directory browsing to look at the confidential information inside your files and folders. They might even copy your website’s contents, including content that you would usually charge for such as ebook downloads or online courses.

This is why it’s considered a best practice to disable directory browsing in WordPress.

How to Check is Directory Browsing is Enabled in WordPress

The easiest way to check whether directory browsing is currently enabled for your WordPress website is by simply visiting the /wp-includes/ folder link like this: https://ift.tt/wm3OPGq.

You’ll want to replace www.example.com with your website’s URL.

If you get a 403 Forbidden or similar message, then directory browsing is already disabled on your WordPress website.

A website with directory browsing disabled

If you see a list of files and folders instead, then this means that directory browsing is enabled for your website.

A WordPress site with directory browsing enabled

Since this makes your website more vulnerable to attack, you’ll typically want to block directory browsing in WordPress.

How to Disable Directory Browsing in WordPress

To disable directory listing, you’ll need to add some code to your site’s .htaccess file.

To access the file, you’ll need an FTP client, or you can use the file manager app inside your WordPress hosting control panel.

If this is your first time using FTP, then you can see our complete guide on how to connect to your site using FTP.

After connecting to your site, simply open your website’s ‘public’ folder and find the .htaccess file. You can edit the .htaccess file by downloading it to your desktop and then opening it in a text editor like Notepad.

At the very bottom of the file, simply add the following code:

Options -Indexes

It will look something like this:

The WordPress .htaccess file

Once you’re done, save your .htaccess file and upload it back to your server using an FTP client.

That’s it. Now if you visit the same https://ift.tt/XyvKzie URL, you’ll get a 403 Forbidden or similar message.

How to disable directory browsing in WordPress

We hope this article helped you learn how to disable directory browsing in WordPress. You may also want to see our ultimate WordPress security guide, or see our expert pick of the best WordPress membership plugin to protect your files.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Disable Directory Browsing in WordPress first appeared on WPBeginner.


July 07, 2022 at 04:00PM

Wednesday, July 6, 2022

How to Do Keyword Research for Your WordPress Blog

Do you want to do keyword research for your WordPress blog?

Keyword research helps you find betters content ideas so you can grow your traffic and create highly engaging content that users will love.

In this article, we will show you how to do keyword research for your WordPress site.

How to do keyword research for your WordPress blog

What is Keyword Research and Why Do You Need it?

Keyword research is a technique used by content creators and search engine optimization (SEO) experts. It helps you discover the words that people search for when looking for content just like yours.

Once you know the words that people are entering into the search engines, you can use these keywords to optimize your blog posts for SEO. This can help you get more traffic from search engines such as Google.

Some website owners fall into the trap of assuming they already know what their audience are searching for. However, you don’t need to make guesses when there are powerful tools that can help you make decisions based on real data.

By doing keyword research as part of your WordPress SEO strategy, you can:

  • Find the words and phrases that your audience are actually entering into the search engines
  • Increase the traffic you get from search engines
  • Find content ideas that are easy to rank for and have decent search volume
  • Find out what your competitors are doing – and do better!

That being said, let’s take a look at how to do keyword research for your WordPress blog.

In this post we have hand-picked the best keyword research tools that we have personally used for our own projects. We will explore each tool and how it can help you perform keyword research like a pro.

1. Semrush (Recommended)

Semrush Website

Semrush is one of the best SEO Tools on the market. It is a complete SEO suite with tools that can help you do organic research, paid advertising research, keyword research, and in-depth competition analysis.

To get started, simply go to the Semrush website. Then type a keyword into the ‘Enter domain, keyword or URL’ field. 

Semrush - enter keyword into search bar

If you don’t already have some keywords in mind, then you can use any word or phrase related to your business. For example, if you run an eCommerce site that sells headphones, then the word ‘headphones’ might be a solid starting point. 

Click on the ‘Start now’ button and Semrush will display lots of information about the keyword you just entered. 

The Semrush Keyword Magic tool

This include the CPC for paid advertising, the number of search results, and search volume.

Scroll down a little and you will see a list of related keywords. Related keywords are search terms that are related to the keyword you typed into the Semrush homepage.

A list of related keywords in the Semrush platform

Some websites are guilty of stuffing the same keyword into their content over and over again, in an attempt to rank for that keyword. This makes your content more difficult to read.

In fact, Google may even give your website a penalty if they suspect you’re using these tactics. This can lower your position in the search engine rankings.

By adding lots of related keywords to your content, you can show the search engines that you’re writing about your chosen topic in a genuine, detailed way. For this reason, it’s smart to add related keywords to your content wherever possible. 

To see the full list of related keywords, click on the ‘View all…’ button.

How to view all keywords, in the Semrush tool

Next, scroll down to the SERP Analysis section. SERP stands for search engine results page. This is the page that the search engines display after a user searches for a word or phrase.

The SERP Analysis section displays the list of top search results for the keyword that you originally entered.

If you want to rank for this keyword, then these sites are your biggest competition.

The Semrush SERP analysis feature

To view a detailed Organic Report for each result, simply click on its URL.

By analyzing this report, you can better understand why this page ranks so highly for this particular keyword. 

Organic Research, as seen in the Semrush tool

If you want to learn more about the related keywords, then Semrush has a Keyword Magic Tool. This gives you fast access to information about a wider range of related keywords.

To see this tool in action, click on Keyword Magic Tool in the Semrush sidebar. 

Semrush's Keyword Magic tool

When you spot a promising keyword, you can click on its add (+) icon. This will add this word or phrase to Semrush’s keyword analyzer where you can learn even more about it.

Once you have figured out the best keywords with the highest search volume, the next step is analyzing competition for those words or phrases. If a keyword has a huge search volume but very high competition, then you may struggle to earn a cut of that traffic.

To see a detailed analysis, click on the links that are already ranking for your chosen keyword. You can also see the backlinks for that URL, other keywords that page ranks for, and an estimate of how much search traffic this link gets.

Overall, Semrush is the best keyword research tool on the market. It not only gives you keyword ideas, it also helps you find out how you can rank for those keywords.

Even better, Semrush integrates with All in One SEO (AIOSEO) to help you find and research related keywords directly in your WordPress dashboard. 

AIOSEO is the best SEO plugin for WordPress and has all the tools you need to get more traffic from the search engines without editing code or hiring a developer. For more details, you can see our guide on how to setup AIOSEO for WordPress correctly

When you’re creating a page or post in WordPress, simply scroll down the page to AIOSEO’s Focus Keyphrase section. You can then enter the keyword that you want to target with this content.

Adding a focus keyphrase in the AIOSEO tool

Then, click on the Add Focus Keyphrase button. AIOSEO will now scan your content and give you an SEO score. This is an easy way to make sure it’s optimized for the phrase that you want to rank for. 

AIOSEO will also suggest ways to improve your score. 

Performing keyword research using the All in One SEO plugin

These tips can help you rank for your focus keyphrase.

The Semrush integration also makes it easy to discover related words and phrases. 

To start, simply click on the Get Additional Keyphrases button. This launches a popup where you can log into your Semrush account. 

AIOSEO's Get Additional Keyphrase button

After connecting your Semrush account to AIOSEO, you can explore the related keywords inside your WordPress dashboard. 

AIOSEO will even display the search volume and trends for each related keyphrase. This can help you pinpoint the terms that could deliver the most visitors to your website.

Exploring related keywords, using AIOSEO

If you have AIOSEO Pro, you’ll also see an Add Keyphrase button. This makes it easy to add any keyphrase to your post. 

After adding a related keyword, AIOSEO will check all of your content for this new phrase. It will then give you a score, which reflects how well you’re targeting the related keyword.

The All in One SEO (AIOSEO) plugin user interface

AIOSEO will even give you feedback and suggestions on how to improve your content. By following these recommendations, you’ll stand the best possible chance of ranking for this additional keyphrase. 

2. Ahrefs

Ahrefs

Ahrefs is one of the most powerful keyword research tools on the market. It helps you learn why your competitors are ranking so high, and what you need to do to outrank them in search results.

Ahrefs crawls more than 6 billion pages every day, with over 22 trillion links in their index from over 170 domain names. That’s a lot of data, but the real beauty is how the Ahrefs platform helps you use this data to perform keyword research. 

Ahrefs has a user-friendly interface that breaks this data into different sections. Simply type a domain into the search field and Ahrefs will display a wealth of information in an easy to understand format.

Ahref's Site Explorer page

Ahfres will start by showing you an overview of the information for this domain. This includes the total number of backlinks, referring domains, organic keywords, and content review. You can click on any of these sections to learn more.

There is lots to explore. You can see one of the most useful reports by clicking on ‘Organic Keywords.’ This will display a list of keywords for the domain name along with search volume, search rank, URL, and more.

Organic Keyword data, in the Ahfres dashboard

If you want to generate some keyword ideas, then start entering phrases or words into the search box. This can be anything from the name of your top-selling product, to a new buzzword in your industry. 

Ahrefs’ keyword explorer tool will then generate a list of keyword suggestions, along with their search volume, difficulty score, and clicks. We recommend looking for keywords that have a high search volume, and a lower difficulty score. 

The Ahrefs keyword explorer tool

Ahrefs also comes with powerful tools for content analysis, rank tracking, web monitoring, and more. You can export all reports in CSV or PDF format and then work on them in your favorite spreadsheet software.

3. AnswerThePublic

The AnswerThe Public keyword research tool

AnswerThePublic is a free visual keyword research and content ideas tool. It uses Google and Bing’s auto-suggest features, and presents this data in a format that’s easier to understand.

To get started, simply visit the AnswerThePublic website and enter a keyword or phrase. The tool will then load related keywords and present them as a visual map. 

Exploring related keywords, in the AnswerThePeople tool

You can click on any keyword and AnswerThePublic will show this word’s Google search results in a new browser tab. This is an easy way to explore the questions that people are searching for, so you can create content that answers those questions. 

AnswerThePublic presents all its keyword research on a single page. You can also download this data as images. 

Another option is exporting AnswerThePublic’s data to a CSV file. You can then explore this data using your preferred spreadsheet software.

How to download the AnswerThePeople keyword research data

More Keyword Research Tips

All the above tools will provide you with a wealth of data.

If you’re unsure where to start, then here’s some tips on how to find the keywords that will deliver lots of traffic to your website.  

1. Start With Broader Search Terms

Keyword research isn’t about finding the perfect search terms on your first try. 

After all, there’s a reason why it’s called research! 

It often makes sense to start with more general, vague search terms. This could be the name of your products, company, or important topics within your industry. 

You can then explore the results, and refine your potential keywords. If you’re using AIOSEO, then you can use the Additional Keyphrases feature to easily find related keywords.

You can then view the search volume and trends for these related words and phrases. This can help you find new keywords that could potentially bring lots of high-converting, highly-focused traffic to your website.   

2. Do Competitor Research 

Competitor research is where you use a tool to analyze your own keyword performance and then compare it with your competitors. For more details, please see our guide on how to do an SEO competitor analysis in WordPress.  

Some tools can even help you spot opportunities to outperform your competitors. For example, the Semrush sidebar has an entire section dedicated to competitor research.

Semrush's competitor research section

3. Focus on Search Intent 

Search intent is what the user hoped to achieve by searching for this particular keyword.

Some keywords have a very clear search intent. Others are a bit more vague. 

Imagine someone types ‘burrito’ into a search engine. This person may want to order takeout, or they might be searching for a burrito recipe. They may even be looking for the definition of the word ‘burrito.’ 

The search intent is unclear. Even if you manage to rank for this keyword, you may struggle to create content that matches the visitor’s search intent. This is simply because there are lots of different possible search intents for the word ‘burrito.’ 

Now, think about the search term ‘best vegetarian burrito recipe.’ Here, the search intent is much more clear.

There may be less people searching for this keyphrase, but it’s easier to create content that perfectly matches the search intent.

When it comes to keyword research, there’s always the temptation to use generic search terms that have a huge search volume.

However, it’s important to keep the search intent in mind. 

Here, a tool such as AIOSEO can help you find related keywords that have a lower search volume, but a very clear search intent. 

How to Apply Keyword Research in Your Business or Blog? 

The main goal of keyword research is to find out what your customers are searching for, and then rank for those words in the search results. There are different ways to do that depending on your content strategy.

To start, plan a proper content marketing strategy around the keywords that you want to target. This might involve creating useful content articles, blog posts, infographics, and videos about this keyword.

Business websites can create landing pages, documentation, FAQs and other content targeting their new keywords. 

When writing your content, you can enter your target keyword into a tool such as AIOSEO. AIOSEO will then help you optimize your content for this focus keyword.

If you run an online store, then you can also use those keywords in your product titles, descriptions, and product categories. If you’re using WooCommerce for your online store, then please see our step-by-step guide to ranking #1 in Google.

Need help creating engaging content? Check out our expert pick of the best content marketing tools and plugins.

How Do I Track the Performance of My Keyword Research?

Was your keyword research a success? Are you getting more traffic from the search engines, or do you still have work to do?

If you’re going to answer these questions, you’ll need to track your performance.

First, you need to sign up for Google Search Console. This tool provides insights into how Google views your website. You can also use Google Search Console to track the keywords that you rank for and your average position in the search results. 

To properly track the performance of your content, you’ll need to add Google Analytics to your WordPress website.

The best way to do that is by using MonsterInsights, the best Google Analytics plugin for WordPress. It’s used by over 3 million businesses, including Microsoft, Bloomberg, PlayStation, and Subway. For more details, please see our guide on how to install Google Analytics to a WordPress website.

We hope this article helped you learn how to do keyword research for your WordPress blog. You may also want to see our guide on how to create an email newsletter the right way, or check out our expert comparison of the best business phone services for small business.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Do Keyword Research for Your WordPress Blog first appeared on WPBeginner.


July 06, 2022 at 02:00PM

Tuesday, July 5, 2022

How to Change the Category Base Prefix in WordPress

Do you want to change the category base prefix in WordPress?

By default, WordPress automatically adds /category/ as a prefix to URLs for all category pages. However, you can easily change the category base prefix or completely remove it.

In this article, we will show you how to change the category base prefix in WordPress.

How to change the category base prefix in WordPress

What is Category Base Prefix? Should You Change It?

Each category on your WordPress site gets its own page and RSS feed. You can view all posts filed under a category by visiting that category archive page.

By default, WordPress adds ‘category’ as a base prefix to URLs for category pages. This helps differentiate pages and posts from category and tag archives.

For example, if you have a category called ‘News’ then its URL will look like this:

https://ift.tt/2oTXCzh

Similarly, WordPress also adds tag prefixes to URLs for tag archives.

https://ift.tt/2A63sMQ

This SEO-friendly URL structure helps users and search engines understand what kind of page they are visiting.

Most websites don’t need to change the base prefix at all. However, if you are creating a niche site where you would like to use a different word or phrase for your categories, then you can change the category base prefix to reflect that.

Changing Category Base Prefix in WordPress

Changing the category base prefix is quite simple in WordPress.

You need to visit the Settings » Permalinks page from your WordPress dashboard and scroll down to the ‘Optional’ section.

Add a new category base prefix

In the ‘Category base’ field, you can enter the prefix you would like to use next to the category base option. You can also change the tag base prefix if you want.

For example, you can add ‘topics’ as the new prefix. In this case, your category URLs will look like this:

https://ift.tt/gcN7R1x

Don’t forget to click on the ‘Save Changes’ button to store your settings.

Removing Category Base Prefix from URLs

Many of our users have asked us about removing the category base prefix from WordPress URLs altogether. This will change your category URLs to look like this:

https://ift.tt/c27ERvC

This is not a good idea, and we recommend that you do not remove category base prefix.

The category base prefix helps both users and search engines distinguish between posts/pages and categories. Removing the prefix makes your URLs ambiguous, which is not good for user experience or WordPress SEO.

You may also run into technical issues with various WordPress plugins. For example, if you have a category and a page with the same name or when you are using %postname% as your URL structure for single posts, then your site will experience an infinite redirect loop causing the pages to never load.

However, if you still want to do this, then you can use the All in One SEO (AIOSEO) plugin.

All In One SEO - AIOSEO

It is the best SEO plugin for WordPress and makes it super easy to optimize your website for search engines. Plus, it gives you an option to strip the category base prefix with a click of a button.

For this tutorial, we’ll use the AIOSEO Pro license because it includes the feature to remove category base and other powerful options like the redirection manager and link assistant. There’s also a free version of AIOSEO that you can use.

First, you’ll need to install and activate the AIOSEO plugin. For more details, please see our guide on how to install a WordPress plugin.

Upon activation, you’ll see the AIOSEO setup wizard. Simply click the ‘Let’s Get Started’ button. You can see our guide on how to setup All in One SEO for WordPress for more information.

All in One SEO setup

Next, you can head over to All in One SEO Search » Appearance from your WordPress admin panel and click on the ‘Taxonomies’ tab.

After that, go to the Categories section and switch to the ‘Advanced’ tab. From here, simply click the toggle to Yes for ‘Remove Category Base Prefix’ option.

Enable the remove category base prefix button

Don’t forget to click the ‘Save Changes’ button when you’re done.

Setting Up Redirects After Changing Category Base Prefix

If you are changing or removing the category base prefix on a new WordPress website, then you don’t need to do anything. However, if you are doing this on an existing website, then users visiting the old category page will see a 404 error.

To fix this, you will need to set up a redirect to make sure both search engines and regular visitors are properly redirected to the correct category page on your site.

The easiest way of setting up redirection in WordPress is by using the All in One SEO (AIOSEO) plugin.

To start, you can go to All in One SEO » Redirects from the WordPress admin panel and then click the ‘Activate Redirects’ button.

Activate redirects

Once it’s active, you can go to the ‘Redirects’ tab to setup redirection.

Simply enter the URL you want to redirect under the ‘Source URL’ field and the new location for the link under the ‘Target URL’ field.

As for the Redirct Type, you can select ‘301 Moved Permanently’ from the dropdown menu. This will permanently move your old category pages to the new destination.

Set up redirection in AIOSEO

Don’t forget to click the ‘Add Redirect’ button when you’re done.

For more details, please see our beginners guide to creating 301 redirects in WordPress.

Now all your users and search engines will be redirected to the correct URLs using your new category prefix.

We hope this article helped you learn how to change the category base prefix in WordPress. You may also want to see our list of most wanted WordPress tips, tricks, and hacks and how to start an online store.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Change the Category Base Prefix in WordPress first appeared on WPBeginner.


July 05, 2022 at 05:00PM