# 404 Errors

WordPress 404 errors usually occur when you have removed certain pages from your website and haven’t redirected them to your live pages. Sometimes, these errors may also occur when you have changed a URL of a specific page. The most common case that you may face is: The course Page will not load and returns a 404 error.

Most common causes of the error are:

* [**Permalinks**](#permalinks)
* [**Incorrect Course Publishing**](#incorrect-course-publishing)
* [**LMS Pages are not specified**](#lms-pages-are-not-specified)

## Permalinks

**Permalinks** are the permanent URLs of your posts, pages, categories, and other archive pages on your website. These URLs are permanent and should never be changed — hence the name *perma*link.

Permalinks help to create a URL structure that is easy for both humans and search engines to understand and share.

* A permalink is used when another blogger wants to link to your article.
* You share the permalink when you want to share your content on social media.&#x20;
* When Google wants to index your article, they use the permalink of the content.&#x20;
* When you want to share a blog post with your friend, you send the permalink of your content in an email.

{% hint style="danger" %}
To maximize your experience with **MasterStudy LMS,** ensure that your permalinks are configured correctly. If permalinks are not set correctly, you may encounter errors or problems.
{% endhint %}

### How to Set up Permalinks Correctly?

1. Access the Permalinks settings from your WordPress dashboard by navigating to **Settings -> Permalinks:**

<figure><img src="/files/HqHK7AMJG1t8gQ3r76V7" alt=""><figcaption></figcaption></figure>

2. Choose **Post Name** as the **Permalink Structure** and **save** the changes:

<figure><img src="/files/yicpl7r7sSEWQYYEiQ69" alt=""><figcaption></figcaption></figure>

## Incorrect Course Publishing

Make sure that Courses are published and not set as Draft. You can check it from Instructors' Dashboard:

<figure><img src="/files/H4ZkOLyhaseJ6ySpXTnv" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
When the Course is saved as "Draft", it will not appear on the Courses page. If Students have a link for the course it will return 404.
{% endhint %}

## LMS Pages are not Specified

Kindly check that you have set [**LMS Pages**](/masterstudy-lms/lms-settings/lms-pages.md) correctly. Follow MS LMS Settings -> LMS Pages:

<figure><img src="/files/BSwKdg8RECcQmAPYGMj8" alt=""><figcaption></figcaption></figure>

* try to make a default `.htaccess` file


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/masterstudy-lms/troubleshooting/404-errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
