General Community > Scripting Help

Moving the forum to a subdomain

(1/1)

Fizzy:
Hi all,

When SMF gets released I would like to take the step of moving my forum in to a subdomain of smething  like forum.blahblah.com/index.php  At the moment my url reads as http://www.blahblah.com/yabbse/index.php

I already have [unknown]'s code running which means that the current forum has been well spidered using the same format as he has used here in SMF.

My question though is this.
Is there a way that I can get any incoming link showing on google as http://www.blahblah.com/yabbse/index.php?thread=123 to be redirected to
http://forum.blahblah.com/index.php?thread=123 ?

I was thinking maybe htaccess but wasn't sure if that would work or not and what code to actually use.

I appreciate any suggestions.

Spaceman-Spiff:
if you're using cPanel, you can do the htaccess stuff easier there

if you're using the same subdomain name, it will be the same if you use forum.site.com and www.site.com/forum (at least when using cPanel)

another way is to create a redirection script, maybe something like:
<?php
header("Location: http://forum.site.com/index.php?$QUERY_STRING");
?>
save it as index.php and use it to replace the old one

Fizzy:
Thanks for that spACEman sp1ff

I'll give it a try and see how I get on ......  :-\  wait for the bang  ;D

dschwab9:
If you're using Cpanel, just create a subdomain "forum", which will automatically be accessable by:
forum.domain.com or,
www.domain.com/forum/

Move your forum to www.domain.com/forum/

Then create a symbolic link yabbse-->forum

Then, your forum should be accessable at: forum.domain.com, www.domain.com/forum/, or www.domain.com/yabbse/

OR, if you have access to http.conf, or can talk your host into editing it, just define a new virtual server "forums.domain.com" with the root directory being your current "yabbse" directory.

[Unknown]:
Don't forget my Global Cookies mod while you're on YaBB SE! (already in SMF ;).)

-[Unknown]

Navigation

[0] Message Index

Go to full version