News:

Wondering if this will always be free?  See why free is better.

Main Menu

Changing forum path

Started by f00ty, August 08, 2010, 03:02:59 PM

Previous topic - Next topic

f00ty

I currently have my forum in root of the my webhosting server, like mysite.com.
Now I'd like to change SMF to be in mysite.com/forum (I planned to change SMF settings with repair_settings.php).
Then I'll redirect everything from mysite.com to mysite.com/forum.
But how I can change posts paths or will they be changed automatically? For example post (I'm using prettyurls) mysite.com/board/I-need-help to mysite.com/forum/board/I-need-help. So is there a way to redirect those posts from original to the new location? I don't have ssl connection to my webhost available, only ftp.

I'm using SMF RC3 with prettyurls modification.

kat

Not sure how it'll affect PrettyURLs.

What about backing-up, uninstalling that mod, moving everything and repairing settings, then reinstalling the mod?

Don't forget that your members and search engines will still go to your old URL.

f00ty

Quote from: K@ on August 08, 2010, 03:14:48 PM
Not sure how it'll affect PrettyURLs.

What about backing-up, uninstalling that mod, moving everything and repairing settings, then reinstalling the mod?

Don't forget that your members and search engines will still go to your old URL.

Yes, that's the problem, everything will go in the old URL still. So that's why I'm intrested in redirecting all posts from their old places to their new places (if we forget the fact I'm using prettyurls). Is that possible?

kat

The posts, themselves, don't have fixed URLs. They're controlled by the global settings, which Repair_Settings.php will fix.

It's just that everyone will be expecting to go to your forum, not yourforum/forum.

That won't be a problem, coz you can announce the change.

It's just that anyone finding your site from a search-engine won't get there.

If that's no hassle, I wouldn't worry about it.

f00ty

Ok, thanks for your quick responses, but I still don't know if you answered my question or not, I'm sorry. So I'll explain one more time:

In website X,  there's a link to: mysite.com/board/hello
Now, I change my forum to be at mysite.com/forum
So, the post is now at mysite.com/forum/board/hello
Where will the link from website X go? Will it show 404, or is it automatically redirected to mysite.com/forum/board/hello?
If not, is there way to do redirection to all my forum posts?

kat

I don't think so, no.

I would imagine that you'd need to set up a kind of general alias, to do that.

No idea how you'd do that, though.

I'll do some research.

No promises, though. ;)

f00ty

Ok, thank you. Luckily my forum is quite new, so there's only few URLs in net to my posts (if we don't count the basic mysite.com, which is not the problem).

I can manually create redirect HTML's to those posts which are linked from other websites. But for Google, it would be so much nicer to have every post redirected.

kat

Out of pure curiosity, why are you going to all this hassle, just to put your forum in a subdirectory?

f00ty

It's because I'm planning to make my site bigger, there will be another stuff too than only the forum. Another option would be to create subdomain, like frontpage.mysite.com, but I don't like the option, I think that would be difficult to remember to some. But mysite.com and mysite.com/forum sounds good. It would be ok too to have forum.mysite.com and frontpage.mysite.com, but it's too late now, and I prefer mysite.com and mysite.com/forum better. But if you have suggestions why frontpage.mysite.com would be better option, I'm intrested to hear them. :)

kat

To save the hassles, why not leave the forum as-is, but put (almost) everything else in subdirectories?

f00ty

Because I don't like that option. Sorry. It would be easy option, but I don't like it.

kat

Fair enough!

Well, apart from what I mentioned, here http://www.simplemachines.org/community/index.php?topic=394830.msg2736737#msg2736737 you're good to go.

Can the links in other sites be changed? Or, are there millions of them?

f00ty

They aren't my sites, so they cannot be changed. :( Thanks for your help!

kat

No sweat!

I'll try some research on that alias/global redirect thingy.

f00ty



f00ty

It shows the Search results... Should it show some mod?

cicka

Quote from: f00ty on August 08, 2010, 04:05:04 PM
It shows the Search results... Should it show some mod?

It lists all the mods that can fulfill your requirments :)

kat

Well, some of them can. ;)

Particularly some on the last page.

f00ty

#19
Ok, I'm sorry, could you point these mods? Best what I can see for my purposes is that 404 mod, that redirects a 404 page to certain page (but not to new location of post). I have viewed them before posting this problem. :)

Advertisement: