Moving an FC2 homepage to another domain.

This article can be read in about 5 minutes.
PR

The purpose 

Moving my website from an FC2 account to a custom domain. 

I want to transfer the same file from the same directory on each page. 

PR

Redirecting with .htaccess

We’ll edit the .htaccess file to implement a redirect. This file should be automatically created in your top-level folder when you create an account on the FC2 homepage.

However, in FC2’s file manager, right-clicking doesn’t allow editing, as shown below. (The same applies to the old file manager.)

While it can’t be edited through the file manager, it’s not read-only; file operations are possible.

You can update the .htaccess file using the following method.

  • Overwriting via FTP
  • Rename the file to .htaccess. 

This time, I’ll show you how to rename a file to “.htaccess” using only a file manager.

Edit .htaccess

Open your file manager and navigate to the folder you want to update the .htaccess file in. (This can also be done with older file managers, but this explanation will cover the new file manager.)

 make a backup copy of the .htaccess file.

remove .htaccess.

Click the “Create File” icon in the top-left corner of the file manager to create a new file. (You can leave the name as the default “newfile.html”. Changing the file extension may prevent you from editing it.)

Right-click the created file and select “Edit with Source Code View” to edit it.

Once editing is complete, save the file, then right-click and select “Rename,” changing the file extension to “.htaccess”.

The .htaccess file with the specified content has been successfully created.

content of .htaccess

To redirect from your FC2 homepage to another domain, use the following .htaccess file.

The source will be my FC2 account. The destination URL will be updated to reflect the new website address (including the www and .com components).

RewriteEngine On
RewriteCond %{http_host} ^transfer-source.web.fc2.com
RewriteRule ^(.*) https://www.transfer-destination.com/$1 [R=301,L]

Result

Accessing “transfer-source.web.fc2.com” will redirect you to “www.transfer-destination.com”.

Accessing “transfer-source.web.fc2.com/sub/” redirects to “www.transfer-destination.com/sub/”.

Accessing “transfer-source.web.fc2.com/sub/2.html” redirects to “www.transfer-destination.com/sub/2.html”.

PR

Another opinion

JavaScript redirection → This requires embedding the code in each page, which is quite cumbersome. If each page needs to redirect to a different destination page, even more code adjustments would be necessary (though you might find a solution).

PR

Reference

【説明書DL】.htaccessのリダイレクト - 書き方・設置場所・設定方法を解説します
【監修】株式会社ジオコード SEO事業 責任者 栗原 勇一 ある程度長くウェブ担当をされている方、「リダイレクト(転送)」が必要になった経験ってありませんか?転送は普通にHTMLを編集するだけではできなくて、悩まれる方も

comment

Copied title and URL