MyBB Community Forums

Full Version: Problem with friendly urls of Seo Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello friends.

I installed the plugin but the SEO URL does not work perfectly.

I configured everything correctly, however, works only for Foruns.

When the url is a thread or post does not work and gives error page not found 404.
forum URL please ...
(2011-10-20, 01:43 PM)ranjani Wrote: [ -> ]forum URL please ...

Sorry, forgot to inform ...

The forum is this: http://www.terraplenagem.net/forum/

My .htaccess file is this:
Quote:Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
# the setting enabled in the Admin CP and you have this file
# named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://www.terraplenagem.net/forum/$1?$2 [L,QSA,R=301]

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /forum/

# Google SEO URL Forums:
RewriteRule ^([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

# Google SEO 404:
ErrorDocument 404 /forum/misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>

Is at the root of the forum and not in the root domain.

In the root of domain I have Wordpress instaled.
have you modified the URL schemes at google SEO URL settings ?

Forum URL scheme <-- Forum-{url} AND Thread URL scheme <-- Thread-{url} ... etc.
(2011-10-20, 02:04 PM)ranjani Wrote: [ -> ]have you modified the URL schemes at google SEO URL settings ?

Forum URL scheme <-- Forum-{url} AND Thread URL scheme <-- Thread-{url} ... etc.

I do not want to appear the words "Thread" or "Forum" in urls. As I did in my other forum in phpBB: http://www.guiadaobra.net

Get it?

I changed URL scheme to only {url} in all. Forum, Thread, Events, Calendar, Announcements, etc...
You need to have something in the URL that distinguishes each type from each other type. By default this is done with the prefixes.

Your phpBB forum also has them, just differently. It uses folders for forums, -t<id>.html suffixes for threads, member<id>.html for profiles, etc. Still, each URL has something different. You can do similar things with Google SEO, within limits. Refer to the documentation for some working examples.
Edit : not seen frostschutz's above response Smile
_______________________________________

such modification is not working as expected ...
(see last couple of pages at MyBB 1.6.x has no Friendly URL by default?)
(2011-10-20, 02:17 PM)frostschutz Wrote: [ -> ]You need to have something in the URL that distinguishes each type from each other type. By default this is done with the prefixes.

Your phpBB forum also has them, just differently. It uses folders for forums, -t<id>.html suffixes for threads, member<id>.html for profiles, etc. Still, each URL has something different. You can do similar things with Google SEO, within limits. Refer to the documentation for some working examples.

Ok... thank you Big Grin