这是我使用的数据:
{
"jornadas": [
{
"partits": [
{
"local": 1,
"visitante": 2
},
{
"local": 3,
"visitante": 4
},
{
"local": 5,
"visitante": 6
}
]
},
{
"partits": [
{
"local": 1,
"visitante": 2
},
{
"local": 3,
"visitante": 4
},
{
"local": 5,
"visitante": 6
}
]
},
{
"partits": [
{
"local": 1,
"visitante": 2
},
{
"local": 3,
"visitante": 4
},
{
"local": 5,
"visitante": 6
}
]
},
{
"partits": [
{
"local": 1,
"visitante": …Run Code Online (Sandbox Code Playgroud) 好吧,我是新手……第一次在这里提问。我有一个名为example.com的域, 我所有的网站都位于以下 URL:https : //example.com/example.com/inter/pf2/ 我想要的是以下内容:当用户转到https://example 时.com在https://example.com/example.com/inter/pf2/显示所有内容,但 URL 一直说example.com 我尝试了以下操作:
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^$ /example.com/inter/pf2/ [L]
Run Code Online (Sandbox Code Playgroud)
但它不起作用
编辑:
This is the .htaccess:
RewriteEngine on
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
RewriteRule ^/?$ %{HTTP_HOST}/inter/pf2/ [L]
Run Code Online (Sandbox Code Playgroud)