Avatar of Tazmanermuni
Tazmanermuni
 asked on

How to disable an apache redirect of a site

I have just recently gotten a server from a friend which have freebsd and apache on it.
i want to remove a 301 moved permanently and whatever redirects it might have on a site that it is hosting. can anyone point me to the files that i have to edit to disable this for a specific site or commands i have to run..
yes i am new to both freebsd and apache but i did find that the vhost.txt file contained som info on the redirect but deleting that entry did not fix it.

please help :-)
Unix OSApache Web ServerFreeBSD

Avatar of undefined
Last Comment
Dave Baldwin

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tazmanermuni

ASKER
hmm i did a apachectl graceful. is that a restart or is there an other command?
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tazmanermuni

ASKER
hmm something did change.. for this i used http://redirectcheck.com/ and after the entry was deleted it went from a 301 to:

HTTP/1.1 200 OK
Date: Thu, 05 Dec 2013 07:55:18 GMT
Server: Apache
Last-Modified: Tue, 15 Aug 2006 08:19:24 GMT
ETag: "333848-0-44e1838c"
Accept-Ranges: bytes
Content-Length: 0
Content-Type: text/html

but going to the site still redirects me to the other site.
Tazmanermuni

ASKER
hmm now it works. my dns server continued redirecting some time after the entry was deleted.. anyways works now thanks Dave
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Dave Baldwin

You're welcome.  Some of these things are not instantaneous, especially DNS.  Also, your browser cache may have brought up the old site if you did not refresh it.
Tazmanermuni

ASKER
sometimes i amaze myself with how stupid i am...
Dave Baldwin

Thanks for the points but I don't think you're stupid because of this.  There are literally thousands of things that have to be dealt with when running a server with web sites.  It is impossible to know or remember everything.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.