MyBB Community Forums

Full Version: Google SEO pages URL not showing correctly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just installed google SEO plugin,
my forum URLs are good, something like:
http://www.consultingcase101.com/forum/F...ting-Firms

but forum page URLs still show as:
http://www.consultingcase101.com/forum/f...age-2.html
http://www.consultingcase101.com/forum/f...age-3.html

How to correct this problem?Thanks!


Here is my .htaccess file:
RewriteBase /forum/
RewriteRule ^Forum-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
RewriteRule ^Thread-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
RewriteRule ^Announcement-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
RewriteRule ^User-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
RewriteRule ^Calendar-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]
RewriteRule ^Event-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
RewriteRule ^sitemap-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

do I have to get rid of this line??
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
Where do they show? The page links seem to be correct for me.

http://www.consultingcase101.com/forum/F...rms?page=7

Quote:do I have to get rid of this line??
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

The rewrite rules merely rewrite URLs; they do not change how links are made and how links show up in the HTML. So removing this rule won't fix your problem, if there are links to this, they will still be there but then go to a 404 page instead.
I just installed google SEO plugin, my forum URLs are good, something like:
http://www.consultingcase101.com/forum/F...ting-Firms
but forum page URLs still show as:
http://www.consultingcase101.com/forum/F...rms?page=2
http://www.consultingcase101.com/forum/F...rms?page=3

Is there anyway to re-write page URLs to something like:
http://www.consultingcase101.com/forum/F...ng-Firms-2
http://www.consultingcase101.com/forum/F...ng-Firms-3

Thanks!
I just found I didn't modify function.php:
" Find:
function multipage($count, $perpage, $page, $url)
{
Replace with:
function multipage($count, $perpage, $page, $url)
{
if(function_exists("google_seo_url_multipage"))
{
$newurl = google_seo_url_multipage($url);

if($newurl)
{
$url = $newurl;
}
}
"

Is there anyway to change URL
http://www.consultingcase101.com/forum/F...rms?page=7
to a more beautiful one?? like
http://www.consultingcase101.com/forum/F...irms-page7


(2010-11-24, 09:20 PM)frostschutz Wrote: [ -> ]Where do they show? The page links seem to be correct for me.

http://www.consultingcase101.com/forum/F...rms?page=7

Quote:do I have to get rid of this line??
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

The rewrite rules merely rewrite URLs; they do not change how links are made and how links show up in the HTML. So removing this rule won't fix your problem, if there are links to this, they will still be there but then go to a 404 page instead.

(2010-11-24, 09:22 PM)case101 Wrote: [ -> ]I just installed google SEO plugin, my forum URLs are good, something like:
http://www.consultingcase101.com/forum/F...ting-Firms
but forum page URLs still show as:
http://www.consultingcase101.com/forum/F...rms?page=2
http://www.consultingcase101.com/forum/F...rms?page=3

Is there anyway to re-write page URLs to something like:
http://www.consultingcase101.com/forum/F...ng-Firms-2
http://www.consultingcase101.com/forum/F...ng-Firms-3

Thanks!

Go to plugins and copy the code Google Seo tells you to copy and paste into .htaccess

Go to your webhost, and ftp or file manager and find .htaccess or create it and paste that code into that file. Click save and try it now.

Edit this line of you .htaccess file:
	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
to
	RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

or something like this... Try to fit your needs.
(2010-11-24, 09:26 PM)case101 Wrote: [ -> ]Is there anyway to change URL
http://www.consultingcase101.com/forum/F...rms?page=7
to a more beautiful one?? like
http://www.consultingcase101.com/forum/F...irms-page7

No. Besides, that wouldn't be SEO friendly. Replacing the thread ID with keywords is fine, but there is no point in mangling dynamic parameters into the static URL, without adding any information whatsoever.