Redirecting Sakura Server Initial Domain

Asked 2 months ago, Updated 2 months ago, 1 views

Sakura Server Initial Domain
https://○○○●●● (designated folder that cannot be changed)
using the URL (already SSLized) in
I'd like to create a site
I would like to redirect the URL to https://○○○
.htaccess directly below the specified folder

RewriteEngine on
RewriteRule^(.*)$http://○○○$1 [R=301,L]

Should I write that?I tried, but it didn't work.

It would be very helpful if someone could tell me.


2022-09-30 11:19

1 Answers

Sakura Internet access control with .htaccess: If encryption (SSL) is enabled, from I want to direct you to the encrypted page

RewriteEngine On
RewriteCond%{HTTPS} off

can be redirected in the .

The usual setting for Sakura's shared rental server is when the domain is "", and the web publish directory (document root) is set to "/home/account name/www/", so I don't think there are any public folders that cannot be changed (I'm sorry if I made a mistake).
For your information,
To redirect "/home/account name/www/abc/" as the document root,
I think I can write the domain sorting description as below.(like shared servers at the end of the 20th century)


Caution! Please be careful not to let infinite LOOP

2022-09-30 11:19

If you have any answers or tips

© 2022 OneMinuteCode. All rights reserved.