TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 346
  • Total: 346

Multiple Front-Pages

Started by MrApples, January 11, 2007, 10:48:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MrApples

How could I make it so if visitors enter a sub-domain and not the main, a seperate front page would come up with news/etc for only one forum, or part of the forums? 

akulion

ull have to use 3 things I think

1: search for a redirection script on the web - those come in handy for diverting people to other pages from a particular page

2: make sure ur server settings are set so that the read HTML files by default before PHP (ask ur host if ur unsure about this one) - then create a HTML page with the redirect script on it - leading to another PHP based page

3: on this other php based page u will have to include a reference to ur SSI.php and call the news/ recent posts, etc using that. For more on usage of SSI please refer to simple machines.

So in a nutshell - this is quite a task, so there really isnt a 'put this code' answer :up: 

MrApples

Wasn't expecting a put this code answer, was hoping for a edit this file though. I think i'll have to practice php more before I attempted this.

This website is proudly hosted on Crocweb Cloud Website Hosting.