Info
- 4 posts
- 3 voices
- Started 5 years ago by worrypascanada
- Latest reply from ear1grey
- This topic is resolved
Change URL address?
-
- Posted 5 years ago #
Hello again,
How and where can I change my URL from http://www.patrimoineacadien.com/bbpress/ to http://www.patrimoineacadien.com/somethingnew/?
Thanks for replying.
-
- Posted 5 years ago #
I think the easiest (& most stable) solution is to use a symlink such as
ln -s /path/to/bbpress newnamein the folder where you want the new forum to appear (probably at the top level of your server).Then, once that's running, open your
config.phpand change$bb->path = '/newname/';I think that's all, and you have the advantage of being able to get the symlink working before asking bbpress to use the new path when creating links.
Anyone see any gotchas with that?
-
- Posted 5 years ago #
Only gotchas I can see would be in the content of the posts, if there are links from one post to another post within the forum. They will break.
-
- Posted 5 years ago #
The symlink would mean old URI's would still work, but any new URI's generated (on every new page) would point to the preferred address.
I think it's maybe also worth adding this to
robots.txta:
User-agent: *
Disallow: /your-old-folderSo that any robots that discover one of the older URLs don't go indexing what they might consider as duplicate pages.
Longer term you could also add a 301 redirect to htaccess to ensure any links to the old content have rank properly attributed to the new location... but this is probably getting waaay too complex if it's a new installation.
Another alternative, of course, is to just rename the folder and change your
config.php- it's more maverick than the symlink approach, but if your forum is new and has no fully qualified self referencing links contained within, then it's not much of a wrench to just move the whole kaboodle. -
You must log in to post.