PCTechTalkhttp://www.pctechtalk.com/forums/

Go Back   PCTechTalk > PC Tech > Web Related

Reply
 
LinkBack Thread Tools Display Modes
Old 04-14-2004, 10:31 AM   #1 (permalink)
Registered User
 
Join Date: Mar 2004
Posts: 19
uncivil
Redirect Script

I pretty php retarded but learning. Can anyone point me in the direction of a PHP Redirtect script that will referance the domain name and point to a directory?
uncivil is offline   Reply With Quote
Old 04-14-2004, 12:17 PM   #2 (permalink)
Da House Nerd
 
greffov's Avatar
 
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
greffov will become famous soon enough
uhm...

in php you can do something like:
PHP Code:
<?
header
("location: http://my.server.com/my.dir/my.file");
?>
if you want to map a complete domain to another, you better look into the apache regexp redirect, and do something like .+ -> http://www.my.server/$0
__________________
Linux virusscanner detected a virus:
Windows 95 ... delete [Y/n] y
~
~

:wq
greffov is offline   Reply With Quote
Old 05-06-2004, 05:08 PM   #3 (permalink)
Registered User
 
Join Date: Mar 2004
Posts: 19
uncivil
ummm. I dont get it...
uncivil is offline   Reply With Quote
Old 05-07-2004, 12:28 PM   #4 (permalink)
Registered User
 
Colin-uk's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 928
Colin-uk is on a distinguished road
you want to point a domain name to a subdirectory, right?

or wrong..?
Colin-uk is offline   Reply With Quote
Old 05-07-2004, 12:47 PM   #5 (permalink)
Registered User
 
Join Date: Mar 2004
Posts: 19
uncivil
Correct..
uncivil is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 06:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
2001 PCTechTalk