ich bekomme ein 301 Moved Permanently von der lokalen Seite, danach wird auf die Online-Präsenz umgeleitet.
- Code: Select all
$ ping my-joomla-3.8.5-site.local
PING my-joomla-3.8.5-site.local (172.16.240.4): 56 data bytes
64 bytes from 172.16.240.4: icmp_seq=0 ttl=128 time=0 ms
64 bytes from 172.16.240.4: icmp_seq=1 ttl=128 time=0 ms
----my-joomla-3.8.5-site.local PING Statistics----
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip (ms) min/avg/max/med = 0/0/0/0
$ LANG=C wget --spider http://www.my-joomla-3.8.5-site.local/index.php/de/
Spider mode enabled. Check if remote file exists.
--2018-02-14 13:59:31-- http://www.my-joomla-3.8.5-site.local/index.php/de/
Resolving www.my-joomla-3.8.5-site.local (www.my-joomla-3.8.5-site.local)... 172.16.240.4
Connecting to www.my-joomla-3.8.5-site.local (www.my-joomla-3.8.5-site.local)|172.16.240.4|:80... connected.
HTTP request sent, awaiting response... [b]301 Moved Permanently[/b]
Location: http://www.my-joomla-3.8.5-site.com/index.php/de/ [following]
Spider mode enabled. Check if remote file exists.
--2018-02-14 13:59:31-- http://www.my-joomla-3.8.5-site.com/index.php/de/
Resolving www.my-joomla-3.8.5-site.com (www.my-joomla-3.8.5-site.com)... 217.160.0.248
Connecting to www.my-joomla-3.8.5-site.com (www.my-joomla-3.8.5-site.com)|217.160.0.248|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.
httpd.conf
- Code: Select all
Listen 172.16.240.4:80
vhosts.conf
- Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@my-joomla-3.8.5-site.local
DocumentRoot "C:/xampp/htdocs/htdocs"
ServerName www.my-joomla-3.8.5-site.local
ErrorLog "logs/my-joomla-3.8.5-site.local-error.log"
CustomLog "logs/my-joomla-3.8.5-site.local-access.log" common
<Directory "C:/xampp/htdocs/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *>
ServerName my-joomla-3.8.5-site.local
ServerAlias *.my-joomla-3.8.5-site.local
RedirectMatch permanent (.+)$ http://my-joomla-3.8.5-site.local$1
</VirtualHost>
- Code: Select all
egrep -v '^ *$| *#' "C:\xampp\htdocs\htdocs\.htaccess" | grep 301
RewriteRule ^index\.php$ http%2://www.my-joomla-3.8.5-site.local/$1 [R=301,L]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]