(2010-11-29, 02:45 PM)Valaki Wrote: [ -> ]Can i remove the "user", "thread" etc from the urls?
No, you can't - there needs to be something in the URLs that identifies them as a user profile, thread, forum etc. You can use something other than User-, for example you could just use u- t- f- etc.
(2010-11-29, 03:23 PM)Merri Wrote: [ -> ]frostshutz: after a few tests I ended up changing redirect.php in this way:
// line 206
$target = $settings['bburl'].'/'.str_replace('%3A', ':', $target);
A very dirty hack
The ramifications of that hack are:
- every link in your forum will be redirected
- every link in your sitemap will be redirected (thereby breaking the sitemap)
It's not a good solution. At the very least you should hack sitemap.php as well to link to : instead of %3A directly. Then if possible, add another hack that filters the output HTML, replacing relative links with href="./originalurl" with : instead of %3A.
Before you get any ideas, no you can't add ./ or any other path to the URL scheme, because it's used for both relative and absolute links, so absolute links (such as in mails and again in the sitemap) would suddenly contain /./ or // which is wrong and unprofessional...
(2010-11-29, 03:23 PM)Merri Wrote: [ -> ]Also, MediaWiki does indeed always use absolute links, so the links are in format "/wiki/Namespaceage" and not "Namespace%3APage" – should always check instead of relying on memory!
Yes, MediaWiki gets away with it because it's aware of the problem and at the same time it controls all the links. Google SEO unfortunately has no influence over how MyBB puts links together, so it can't coerce MyBB into making absolute instead of relative links. At least not in a way that works for everything. You can always make dirty hacks if you absolutely want to do that, in your own forum. Just don't expect them to fix all issues.
(2010-11-29, 03:23 PM)Merri Wrote: [ -> ]I guess if it was first then all the other rules would match to be Threads, I did the move knowing about this possibility beforehand. So far I haven't noticed any issues.
Yes, but if there's a conflict, it usually goes both ways. There are some people who allow anything for threads, but then if someone makes a thread that starts with Forum- in the subject, it suddenly stops working because the URL ends up being /Forum-Something which is then interpreted as a forum url... thus the thread link is broken.
I can't do more than tell you what works best; don't blame me if your forum breaks when you go a different route.