MyBB Community Forums

Full Version: Changing URLs, but not hosts . . .
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi -

I would like to change the URL of my forum, but it will remain on the same hosting account. The only tutorial I saw involved actually changing hosts, but I have two different URLs linked to one account (I'm on hostmonster and want to move my forum from my mainwebsite/forum URL to its own URL, which I've purchased as an 'addon') How do I go about doing this?

It can't be as simple as just changing the URL in the admin CP . . . Blush

Any help is appreciated, and I can provide more details, if needed.

Thanks!
Gwen M.
(2009-07-05, 01:28 AM)Gwen M. Wrote: [ -> ]It can't be as simple as just changing the URL in the admin CP . . . Blush

Pretty much is really Toungue

Once you've added the domain to your account, and it points to your files, you should be able to just change your board URL and cookie settings in the ACP and it should work fine.
It works the same as moving hosts, except you don't have to dump restore the database, and you can probably just mv the files on the server instead of downloading and reuploading them, and you don't have to change the config.php.

You have to update your board and cookie settings to reflect your new location. I'd also change the cookie prefix, just to make sure there aren't any old cookies that interfere, since your old cookies will still be there on the same host.
Remember to make the 301 Redirection at the .htaccess Wink
(2009-07-05, 01:50 PM)rafaweb Wrote: [ -> ]Remember to make the 301 Redirection at the .htaccess Wink

Could you elaborate on this? I am a complete novice . . . Huh
(2009-07-05, 05:16 PM)Gwen M. Wrote: [ -> ]
(2009-07-05, 01:50 PM)rafaweb Wrote: [ -> ]Remember to make the 301 Redirection at the .htaccess Wink

Could you elaborate on this? I am a complete novice . . . Huh

Sure,

First of all this is a Simple Redirect, this example will take your users to youroldurl.com to yournewurl.com and each url of your forum to the index url of your new url:

redirectMatch 301 ^(.*)$ http://www.your-new-url.com

Second:
This redirect is better, you can change only your domain, but the url will take to the old schema with new domain like this:

Esto redirigirĂ­a algo como
http://old-domain.com/anything/
to
http://www.your-new-domain.com/anything/
.

From
http://old-domain.com/anything/any-url.html
to
http://your-new-domain.com/anything/any-url.html

This is the .htaccess.
redirectMatch 301 ^(.*)$ http://www.your-new-domain.com$1

Here are the examples, must edit it with your urls and rename it.
[attachment=14633]

Regards.
Thanks, Rafaweb. But when I open your zip file, it's empty . . . Undecided
(2009-07-06, 03:18 PM)Gwen M. Wrote: [ -> ]Thanks, Rafaweb. But when I open your zip file, it's empty . . . Undecided

Are you using a Mac by any chance? OS X hides files that begin with a period.
Why, yes I am. Smile

Is there a way to unhide them?
Pages: 1 2