MyBB Community Forums

Full Version: [B] .htaccess code error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
in the .htaccess file there is no-end required for the SEF url's..
(I'll do my best to make it clear.)
as example this line in the .htaccess file
RewriteRule ^thread-([0-9]+).html showthread.php?tid=$1 [L,QSA]

we didn't have the symbol $ after the end of SEF url.
and that well cause an dublicated pages issue
(like this url http://community.mybboard.net/thread-340...l/anything )
to prevent that we must replace the line above with this
RewriteRule ^thread-([0-9]+).html$ showthread.php?tid=$1 [L,QSA]

but that well cuase another problem, if you disabled the friendly redirect pages.
whene u post new replay using the full reply mode.
you will be redirected to url like the following one as example.
http://community.mybboard.net/thread-340...#pid228573
note the & before the # this will show u 404 not found.
to prevent it comment out this line (784) in inc/functions.php
$url = str_replace("#", "&#", $url);
If we do $ won't that kill any change of using ?pid=123 (as an example) ?

Also I don't see how http://community.mybboard.net/thread-340...l/anything is actually a bug. I could simply say that MyBB is smart like that by actually still working, could I not?
(2008-08-05, 11:38 PM)Tikitiki Wrote: [ -> ]Also I don't see how http://community.mybboard.net/thread-340...l/anything is actually a bug. I could simply say that MyBB is smart like that by actually still working, could I not?
sure u can say mybb is smart for this one, but the main point is to remove any duplicated pages
(same title/same content with different url!)
the duplicated pages got bad treat from SE
(2008-08-05, 11:38 PM)Tikitiki Wrote: [ -> ]If we do $ won't that kill any change of using ?pid=123 (as an example) ?
yes it'll kill ?pid=123 but I don't see anything that using ?pid=123 with mybb SEF url's..
it maybe used with non-sef url's but I didn't see it anywhere with the sef url's
Removing the ability to send along information to the PHP script past the .html is a bug in itself. If you look around we do, do that in some places and you'd be breaking that.

Also, that won't affect SEO. 1) Search engines are smarter then that these days 2) You wouldn't be creating duplicates in the first place unless you intentionally wanted to screw with it.

Therefore for the reasons above I've marked this as bogus.
for the 1st reasone, I disagree with you..
if search engines became smarter then that
why do someone like me see report like this in his google webmasters tools account (for example why I disagree with the 1st reasone) (this url's marked as duplicated titles)
That's google being smart, it knows enough to ignore duplicate urls and even tell you about the.

Either way, you can disagree all you want but your going to end up with at least 10 other bug reports caused by your changes and unless you want to fix them, it's not going to go in.
(2008-08-07, 03:19 PM)Tikitiki Wrote: [ -> ]That's google being smart, it knows enough to ignore duplicate urls and even tell you about the.
thats good point, I didn't think about it this way before, I was think that whene google report it as an issue, thats mean it'll give a bad effect for the site rank,
I may try to go back to seo school again j/k..
(2008-08-07, 03:19 PM)Tikitiki Wrote: [ -> ]Either way, you can disagree all you want but your going to end up with at least 10 other bug reports caused by your changes and unless you want to fix them, it's not going to go in.

mm, no I didn't think now it's that important to go through all of this.

thanks mate for your clarification