Overview

.htaccess file is a configuration file that can change settings for each directory.
Our server can be configured using .htaccess in the same way as Apache.

Please note that we do not provide support for detailed description methods of .htaccess, so we cannot provide guidance on editing content.

We would appreciate it if you could refer to the support policy, which describes the contents of the support.

Please read before setting

The .htaccess file is hidden because it is usually treated as a hidden file.
Please refer to the following to display hidden files before using.

How to show hidden files (like .htaccess) in File Manager

About the placement of .htaccess files

Create the .htaccess file inside the directory where you want the settings to apply.

As an example, when applying to the WordPress directory, place it directly under the document root as follows.

/[document root]/.htaccess

2021-10-07_08h23_19.png

When checking the document root, please check the following parts from the domain screen.

2021-10-07_12h39_18.png

When creating/editing .htaccess

Here, we will explain how to create a new one in cPanel.

STEP 1: Log in to cPanel.

Log in to cPanel.

STEP 2: Open File Manager.

Click File > File Manager to open it.

A file manager will start.

2021-10-07_13h21_32.png

STEP 3: Open the file menu.

Move to the directory you want to create and select [+ File] from the upper menu.

A new file window opens.

2021-10-07_13h32_25.png

STEP 4: Create .htaccess.

Enter ".htaccess" in "New file name" and press the [Create New File] button.

Create a new file. No extension is required.

2021-10-07_15h00_57.png

A .htaccess file was created.

2021-10-07_15h07_39.png

STEP 5: Edit the file.

To edit the file, hover over the .htaccess file in your file manager and choose either:

You can edit whichever you select.

  • Select [Edit] from the top menu

    2021-10-12_12h00_00-4.png

  • Select [Edit] from the right-click menu.

    2021-10-12_12h00_11.png

STEP 6: Open the edit screen.

Press the [Edit] button on the displayed edit confirmation screen.

2021-10-08_11h48_01.png

STEP 7: Save changes.

Enter the contents and press the [Save Changes] button on the upper menu.

2021-10-12_13h14_27.png

If successful, the following message will be displayed.

2021-10-08_13h06_27.png

When checking the contents of .htaccess

Here, we will explain how to check the contents with cPanel.

STEP 1: Log in to cPanel.

Log in to cPanel.

STEP 2: Open File Manager.

Click File > File Manager to open it.

A file manager will start.

2021-10-07_13h21_32.png

STEP 3: Select the .htaccess file.

Hover over the .htaccess file in your file manager and choose either:

You can choose which one to display.

  • Select [View] from the top menu
    2021-10-12_12h00_00-3.png
  • Select [View] from the right-click menu
    2021-10-12_12h00_11-2.png

The contents are displayed in another tab.

2021-10-12_13h14_27.png

You can check the contents without changing them by mistake, so please take advantage of it.

Was this article helpful?
1 out of 2 found this helpful