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