View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Mon Oct 09, 2017 5:54 pm Post subject: Why is my site redirecting? [SOLVED] |
|
|
Recently forked up my mysql db, got it mostly sorted.
Now I'm having an issue with a particular site getting redirected when there's nothing in /etc/apache2/vhosts.d to make this happen. I don't do any redirects with any other conf files. If it matters, the site that's doing this is a Wordpress site. Where else do I look to stop a redirect that should not be happening? The redirect is from a mainsite.org to a subdomain.mainsite.org. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Last edited by audiodef on Mon Oct 09, 2017 9:41 pm; edited 1 time in total |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Oct 09, 2017 7:12 pm Post subject: |
|
|
IIRC Wordpress will do its own redirects, so maybe something there?
Also, how does apache handling incoming requests? I've seen setups where if the incoming url was not defined in a vhost, the default site would load. So, default == www.example.com. But if you don't have a vhost definition for bar.example.com, www.example.com is loaded.
Without more info. those are the two scenarios which come to mind. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3134
|
Posted: Mon Oct 09, 2017 8:00 pm Post subject: |
|
|
Quote: | IIRC Wordpress will do its own redirects, so maybe something there? | Certainly. WP saves its address in database and uses full paths in all links. This even includes protocol prefix, so you can't really enable https later.
When I had to change domain, I eventually resolved to running sed against database dump and website files. Don't ask, I had a good reason to try being creative there
Rumour says there is some plugin for changing domain in wordpress. Perhaps export/import would do the trick in a sane way. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Oct 09, 2017 8:19 pm Post subject: |
|
|
I only dealt with it superficially, but I worked with some who relied on it heavily. They really didn't want to resort to sed :) _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
|