我有一个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}]
那么要改变什么,以便本地站点不会被重定向到实时版本?
更改var $ host ='https://www.gitaarschoolvdgiessen.nl/en/'; to var $ host ='localhost';在configuration.php中