如何阻止localhost重定向到实时站点

问题描述 投票:-1回答:1

我有一个Joomla本地站点:http://localhost:8080/vanderGiesen但它直接重定向到现场:https://www.gitaarschoolvdgiessen.nl/en/

我已经在configuration.php文件中更改了这个:

public $tmp_path = '/var/www/vhosts/http://localhost:8080/vanderGiesen/httpdocs/joomla/tmp';
    public $log_path = '/var/www/vhosts/http://localhost:8080/vanderGiesen/httpdocs/joomla/logs';

但没有改变。

我还在Joomla文件夹中编辑了.htaccess并删除了这些行:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.gitaarschoolvdgiessen\.nl
RewriteRule (.*) http://www.gitaarschoolvdgiessen.nl/$1 [R=301,L]
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

那么要改变什么,以便本地站点不会被重定向到实时版本?

php joomla configuration
1个回答
0
投票

更改var $ host ='https://www.gitaarschoolvdgiessen.nl/en/'; to var $ host ='localhost';在configuration.php中

© www.soinside.com 2019 - 2024. All rights reserved.