Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making default domain redirect to forums
#1
Okay so I have a host and a domain, but my forums are located at www.domain.com/forums, however obviously www.domain.com will direct to my default index page. Since I'm not done with my index page how can I make it redirect to www.domain.com/forums?

Thanks.
Reply
#2
You can do it with PHP
Code:
header("Location: forums/index.php");
Reply
#3
Quote:<html>
<script>
location = "http://www.paulpotts.com.au";
</script>
</html>

Source: http://inspiredesign.com.au/Redirect-Script
Reply
#4
Weird... when I go to http://www.domain.com/index.html the redirect works, but when I go to http://www.domain.com it doesn't..

Anyone know what to do?
Reply
#5
Check this out.
http://www.web-source.net/javascript_redirect.htm
Reply
#6
(10-05-2009, 08:13 PM)Jake Wrote: Weird... when I go to http://www.domain.com/index.html the redirect works, but when I go to http://www.domain.com it doesn't..

Anyone know what to do?

post up the source...

and try putting the redirect command into a function and then call it on body load
Code:
<body onload="function()">
Reply
#7
Well, sorry I don't really know PHP.. I'm just trying to make a simple redirect.

Can someone just post a code snippet of a full index.html page that simply redirects?

Thanks.
Reply
#8
(10-05-2009, 08:22 PM)Jake Wrote: Well, sorry I don't really know PHP.. I'm just trying to make a simple redirect.

Can someone just post a code snippet of a full index.html page that simply redirects?

Thanks.

Code:
<?php
header("Location: http://yourdomain.com/forums/index.php");
?>

save the above as index.php and change the path after "Location:" to the one you want it to redirect
Reply
#9
Edit: got it working. Thanks.
Reply
#10
(10-05-2009, 08:26 PM)Jake Wrote: Edit: got it working. Thanks.

no problem man if you have any questions about php/javascript/html/css I'm here for you..

ps:
Thank you Blackhat
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP!! How to redirect my sites.. dark_move 8 1,393 03-18-2013, 01:05 PM
Last Post: Haxalot
  [Help] How to redirect without referrer JohnRonder 4 1,720 02-01-2011, 01:10 AM
Last Post: JohnRonder
  Default Custom Field for Wordpress? DLight03 0 731 04-26-2010, 03:06 PM
Last Post: DLight03

Forum Jump:


Users browsing this thread: 1 Guest(s)