Web Hosting Talk







View Full Version : How do I STOP a site re-direct on a RAQ4?


CLPatrick
07-07-2002, 09:25 PM
My systems administrator walked out about a week ago... HELP.

I have a site on my RAQ4 that re-directs immediately to another site on the same RAQ4.

This isn't a page re-direct at index.html... it's an instant site re-direct. Assume it's somewhere on the Admin. site, but haven't been able to find it.

Any ideas?

Cheryl Patrick

chirpy
07-08-2002, 12:05 AM
Cheryl,

Check at the top of the site for a file called .htaccess (you may have to enable your FTP client to allow viewing of hidden or dot files). This is the most likely method that the site is being redirected with.

D8Mike
07-08-2002, 12:41 PM
You may also check in the Server Alias under the settings of the site being directed to.

If the domain name being redirected is listed there remove it and save.

CLPatrick
07-08-2002, 01:10 PM
Which .htaccess file... I opened Command Line and there are about 50.

I looked under server aliases for the site being directed TO and there are none showing. However, I can account for 4 different
domains that DO re-direct there.

CLPatrick

chirpy
07-08-2002, 01:20 PM
It will be at the top of the web root. So, if the domain is www.mydomain.com, then the file would be at:
/home/sites/www.mydomain.com/web/.htaccess

CLPatrick
07-08-2002, 01:34 PM
It will be at the top of the web root. So, if the domain is www.mydomain.com, then the file would be at:
/home/sites/www.mydomain.com/web/.htaccess


I didn't find that directory. I do have an .htaccess file @ /home/sites/site4/web/stats/.htaccess, which just looks like it controls logins:


#Access file
order allow,deny
allow from all
require group site4
Authname WebStats
Authtype Basic
AuthAuthoritative off

*Note, this is me logged in as root through secure shell (putty), not going through telnet or ftp...*

chirpy
07-08-2002, 01:44 PM
Then it's not a .htaccess file that's doing it if you haven't got one at the site root and it redirects when you browse to http://www.mydomain.com. Next stop would be to have a look in your /etc/httpd/conf/httpd.conf file and search for the <VirtualHost></VirtualHost> directive for the domain incase it's been changed manually. This is usually unlikely as it would be overwritten when/if you modified the site through the UI. You should also check in your /etc/httpd/conf/srm.conf incase anything has been entered there relating to the site.

CLPatrick
07-08-2002, 02:18 PM
chirpy:
Thanks for pointing out httpd.conf & srm.conf, which showed me how to fix it. Now I just need to find the right file. Is there a linux command you know of that you can search by a word or phrase in a file? If I could search on command line for "Alias fakename realname", I could then edit my file...

Thanks,
Cheryl

jahsh
07-08-2002, 06:58 PM
it depends on the editor you are using, if you are using pico then you would use control-w to search for a word/phrase, if you are using vi then you would hit ":" and then type what you are looking for and hit enter.