Web Hosting Talk







View Full Version : Redirect permanent


hennaboy
05-18-2001, 04:54 PM
i have a domain name

www.spellstone.com which is on my raq and is taking hits from search engines which points to another domain name.

to make sure they get to the correct place i need to add the following line to the config file in apache

Redirect permanent /henna http://www.hennapage.com/henna

which will direct the users to the correct site......where would i find the config file? would this have any detrimental affect on the server and other domains?

Many thanks in advance for your help

-Edward-
05-18-2001, 08:59 PM
login as superuser in telner/shh ....

type - pico httpd.conf

the scroll down the file to the domain and edit the file path so it points to whatever site number ur main domain is ....

press ctrl & x save it .. then restart httpd.conf....

then that will make it a permanent redirect :)

hennaboy
05-19-2001, 02:22 AM
right loggin in as su

typed pico httpd.conf

comes up with UW PICO(tm) 3.7 File:httpd.conf

the rest of the screen is blank and at the bottom it says newfile

do i need to open this file?....where is the list of domains.

Thanks for your help

hennaboy
05-19-2001, 02:30 AM
Hi me again :)

is the line that i have the correct syntax for doing what i require?.....is there anything else that should be there and do i just simply add it to the end of the list of values for the domain in question?

Finally you mentioned that i should restart the httpd --- how do i do this?

Many thanks for the help.....i think i have a lot to learn!

-Edward-
05-19-2001, 09:57 AM
/etc/rc.d/init.d/httpd restart - that will restart your httpd.conf file.

I was wrong do this to call your httpd.conf file -

pico /etc/httpd/conf/httpd.conf

Should be straight forward from here.