MyBB Community Forums

Full Version: Google SEO
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How do I change the url of the user on users profiles?
Like website.com/User-MyBB
To website.com/MyBB

Another thing is why is there a; rndtime=1355008538143383315 at the end of all of the urls, so anything I click on that is there.

Where do I add this?

RewriteEngine on

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

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

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

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

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

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

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

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

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

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
(2012-12-09, 12:00 AM)MYBB GHOST Wrote: [ -> ]How do I change the url of the user on users profiles?
Like website.com/User-MyBB
To website.com/MyBB

You have to have something in the URL that identifies it as profile URL and distinguishes it from all other types of URLs. See also the documentation on URL scheme conflicts.

(2012-12-09, 12:00 AM)MYBB GHOST Wrote: [ -> ]Another thing is why is there a; rndtime=1355008538143383315 at the end of all of the urls, so anything I click on that is there.

That's caused by the Fix Proxy Cache Plugin or whatever it is called.

(2012-12-09, 12:00 AM)MYBB GHOST Wrote: [ -> ]Where do I add this?

To a file called .htaccess in your MyBB directory.
(2012-12-09, 12:00 AM)MYBB GHOST Wrote: [ -> ]How do I change the url of the user on users profiles?
Like website.com/User-MyBB
To website.com/MyBB

(2012-12-09, 09:23 PM)frostschutz Wrote: [ -> ]You have to have something in the URL that identifies it as profile URL and distinguishes it from all other types of URLs. See also the documentation on URL scheme conflicts.
Do I have to edit something in the rewrite?
(2012-12-09, 12:00 AM)MYBB GHOST Wrote: [ -> ]Another thing is why is there a; rndtime=1355008538143383315 at the end of all of the urls, so anything I click on that is there.

(2012-12-09, 09:23 PM)frostschutz Wrote: [ -> ]That's caused by the Fix Proxy Cache Plugin or whatever it is called.
Can I take off the rndtime=1355008538143383315 and still have the plugin enabled?
(2012-12-09, 12:00 AM)MYBB GHOST Wrote: [ -> ]Where do I add this?

(2012-12-09, 09:23 PM)frostschutz Wrote: [ -> ]To a file called .htaccess in your MyBB directory.
Is it the htaccess.txt? or do I have to make a .htaccess?
htaccess.txt is just an example, the file that matters is .htaccess
(2012-12-09, 09:56 PM)frostschutz Wrote: [ -> ]htaccess.txt is just an example, the file that matters is .htaccess

Ok, so what do I do with htacess.txt, delete it, change name to .htaccess or what?
Also do I make a file called .htaccess or where is it at?
Yes...
(2012-12-10, 12:49 AM)frostschutz Wrote: [ -> ]Yes...

Yes to which one?
(2012-12-10, 12:49 AM)frostschutz Wrote: [ -> ]Yes...

Yes to; Ok, so what do I do with htacess.txt, delete it, change name to .htaccess or what?
or yes to; Also do I make a file called .htaccess or where is it at?
So help?
How do I fix this?
[Image: gjmgK.png]
Pages: 1 2