![]() | | ||||||||
| | #1 |
| Warrior Member Join Date: Jan 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
|
i have been trying to get this code working for me [?php $url = "http://www.somedomain.com"; header("Location: $url"); exit(); ?] (naturally you change the 2 [square brackets] to <angle brackets> but it does not work correctly i must be doing something wrong because when i click the link it just says like http://www.website.com/://otherwebsite.com if somebody knows what i´m doing wrong then it would be good to know thanks all
|
| | |
| | #2 |
| Chick Magnet Join Date: May 2009 Location: Kentucky, USA
Posts: 193
Thanks: 18
Thanked 22 Times in 19 Posts
|
All you need is: <?php header( 'Location: http://www.YourLink' ) ; ?> Do Not have anything else on the page and name the page extention .php. Example: redirect.php |
| Collectible Dolls Shop, Nursing Scrubs Shop, Best Shopping Center, Sports Memorabilia Deals Eat More Beans - America Needs The Gas. | |
| | |
![]() |
|
| Tags |
| code, php |
| Thread Tools | |
| |
![]() |