Discussion:
301 on my wordpress but no htaccess
(too old to reply)
f***@gmail.com
2016-11-03 11:27:30 UTC
Permalink
Hello,

After moving my site to a new apache server, i'm not able to access to

curl -v http://www.followmytrack.net
* Rebuilt URL to: http://www.followmytrack.net/
* Hostname was NOT found in DNS cache
* Trying 164.132.197.229...
* Connected to www.followmytrack.net (164.132.197.229) port 80 (#0)
GET / HTTP/1.1
User-Agent: curl/7.38.0
Host: www.followmytrack.net
Accept: */*
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 03 Nov 2016 11:18:30 GMT
* Server Apache is not blacklisted
< Server: Apache
< Location: http://www.instantanes-alphonse.fr/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host www.followmytrack.net left intact
***@vps330357:~# curl -v http://www.followmytrack.net
* Rebuilt URL to: http://www.followmytrack.net/
* Hostname was NOT found in DNS cache
* Trying 164.132.197.229...
* Connected to www.followmytrack.net (164.132.197.229) port 80 (#0)
GET / HTTP/1.1
User-Agent: curl/7.38.0
Host: www.followmytrack.net
Accept: */*
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 03 Nov 2016 11:25:37 GMT
* Server Apache is not blacklisted
< Server: Apache
< Location: http://www.instantanes-alphonse.fr/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host www.followmytrack.net left intact

On all my wordpres, my htaccess are clean and i don't have any 301 redirection.

How i can remove this 301 ?

Thank you
Ivan Shmakov
2016-11-04 18:45:53 UTC
Permalink
[Cross-posting to news:alt.apache.configuration, because, well,
why not?]
Post by f***@gmail.com
After moving my site to a new apache server, i'm not able to access to
curl -v http://www.followmytrack.net
* Rebuilt URL to: http://www.followmytrack.net/
* Hostname was NOT found in DNS cache
* Trying 164.132.197.229...
* Connected to www.followmytrack.net (164.132.197.229) port 80 (#0)
GET / HTTP/1.1
User-Agent: curl/7.38.0
Host: www.followmytrack.net
Accept: */*
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 03 Nov 2016 11:18:30 GMT
* Server Apache is not blacklisted
< Server: Apache
< Location: http://www.instantanes-alphonse.fr/
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host www.followmytrack.net left intact
[Duplicate transcript removed.]
Post by f***@gmail.com
On all my wordpress, my htaccess are clean and i don't have any 301
redirection.
Well, the question then will be, what /do/ you have? Do you use
mod_alias or mod_rewrite? Do the command like the one below
show anything of relevance to the redirect you get?

$ grep -irE -- 'Redirect|instantanes-alphonse\.fr' /etc/apache2 /var/www

Also, is there a chance that the redirect is produced by the
application (WordPress) itself rather than Apache?
Post by f***@gmail.com
How i can remove this 301 ?
By disabling the part of the configuration that results in the
redirect, I presume.
--
FSF associate member #7257 58F8 0F47 53F5 2EB2 F6A5 8916 3013 B6A0 230E 334A
Eli the Bearded
2016-11-04 20:49:24 UTC
Permalink
In comp.infosystems.www.servers.unix, Ivan Shmakov <***@siamics.net> wrote:
[huge snip]
Post by Ivan Shmakov
Also, is there a chance that the redirect is produced by the
application (WordPress) itself rather than Apache?
There's a very good chance of that. Wordpress seems to like to have a
single domain name and to force all traffic to use that name.

Look in http.../wp-admin/options-general.php

Elijah
------
enjoy the fun of trying to use the same config for dev, qa, and staging
Loading...