Web Hosting Talk







View Full Version : redirection


yipeedoo
07-09-2001, 03:40 AM
i just wanted to ask , does any one has a script which edit .htaccess for Re-direction of urls?

mekmal
07-09-2001, 04:18 AM
maybe this is what you are looking for?

http://www.technotrade.com/htaccess/

or

http://www.newmediaone.com/scripts/errorbot.cgi.txt

kunal
07-09-2001, 04:45 AM
Originally posted by yipeedoo
i just wanted to ask , does any one has a script which edit .htaccess for Re-direction of urls?

that depends on what type of redirection you wont to do.. error based.. referer based... or something else..

yipeedoo
07-09-2001, 10:49 AM
i want something like i can add in my .htacess...

if somone types in... www.mysite.com/somepage.html
then i want him automaticly to be transfered from the server to www.mysite.com/otherpage.html
i guess this can be done on error basis but i need specific re-direction for specific pages....

kunal
07-09-2001, 11:17 AM
Redirect /somedir/page1.htm http://your.domain/somedir/page2.htm


This is the only line you need to add... this should be simple to make.. i dunno of any ready script.. sorry...

take a look at http://www.hotscripts.com.. i think they have a list of them...

yipeedoo
07-11-2001, 03:28 AM
just wanted to ask... how do i add username and passwords to .htaccess ... any script for that?

MikeM
07-14-2001, 09:19 PM
I have a cgi script that encrypts the username and pass for htaccess... Thenm you could just open it and paste into it...

We do it here at work and it works great...
You will also need a copy of cgi-lib.pl
installed in your perl installation.

let me know

yipeedoo
07-15-2001, 04:41 AM
sure plz