Forum Moderators: phranque

Message Too Old, No Replies

301 domain to subdomain/directory?

         

ronniet

1:38 am on Nov 4, 2006 (gmt 0)

10+ Year Member



I've used the only addon domain that my provider gave me so i'm hoping a 301 redirect will do the job here...

I have a .com name and at the moment if the user types in the .com they get taken to where the (SMF) forum actually is; .co.uk/forum

Is it possible to use 301 (or some other form of web magic) so that when people type in the .com they'll get the forum and the links within the forum will show .com/page.html?

OR;

is it easier if i have the forum in a subdomain at .co.uk and redirect the .com to the subdomain rather than the forum directory?

Sorry for any confusion, i'm a complete n00b at 301's and .htaccess stuff

jd01

6:12 am on Nov 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you are better off staying with one domain. There are ways to do just about anything, but duplicating an established domain on a another domain is up at the 'top of things not to do...' as a site operator.

Better to pick either the .com or the .co.uk and stick with it. Which is better usually depends on your specific circumstances.

Wish I could be more help, but depending on the forum software, you might get into a php preg_replace situation (or something similar).

If you are set on using both, you might look at the [P] flag with mod_rewrite, but to just open the other page, you might also be able to accomplish the same thing with fopen() in php.

Justin