Thread Rating:
  • 4 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Google SEO 1.8.3
#21
How to use forward slash (/) instead of hyphen (-) in URLs?

If anyone wants to have a go at my support question regarding this:
https://community.mybb.com/thread-208391.html
Reply
#22
I'd like to add a number for forum and thread URLs, mainly cause it improves page loading speed and keeps duplicate URLs from possibly coming about.  How do I do this?  Well, I know the .htaccess page has to be modified with some character etc..

Anyhow, I want:


http://website-name-goes-here.com/forum-on-topic-31

and

http://website-name-goes-here.com/thread-mybb-plugins-31

instead of

http://website-name-goes-here.com/Forum-On-Topic

and

http://website-name-goes-here.com/Thread-Mybb-plugins


Also, as you noticed, I want this all in lower case and it is not in the given version.    Any ideas?

How do you add slashes instead of dashes?

Example:


http://website-name-goes-here.com/forum/on-topic/31

http://website-name-goes-here.com/thread/mybb-plugins/31

Original code:

Add to .htaccess:
# 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://rice21.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]
Reply
#23
I would like to point out a bug or maybe its something on my end
when title of thread is posted by regular member....
I-want-to-have-smarties (anything/everything with hyphens)
then soft delete as same member
the thread is eathier forbidden or i cant see or go to the thread post (as admin)


Any ideas why?
Reply
#24
This user has been denied support. This user has been denied support.
@AmatureDJ: Seems to work for me (if you are talking about MyBB 1.8 builtin softdelete). Third party trashcan plugins might not work.
Reply
#25
how to force the plugin to make all brand new sitemap ?
Reply
#26
This user has been denied support. This user has been denied support.
That's what it does by default. The sitemap is new the moment you access it. It's dynamically generated same way the forum itself is.
Reply
#27
(04-19-2017, 09:36 AM)frostschutz Wrote: That's what it does by default. The sitemap is new the moment you access it. It's dynamically generated same way the forum itself is.

Hey There and thanks for reply,
Then why is I receive so many error in Google Web Master for links like this

https://www.irandeliver.com/forum/forumd...A%A9%D8%A7

and I have live hundreds of them
Whats that google_seo_forum comming from and how to fix this ?
Reply
#28
This user has been denied support. This user has been denied support.
Sorry no idea (and it's nigh impossible for me to help, since I can't read a single thing on that page).

It does not look like that in your sitemap anyhow, e.g. https://www.irandeliver.com/forum/sitema...xml?page=1 has links like https://www.irandeliver.com/forum/%D8%AA...B%8C%D9%88 (the % notation is just how links with unicode characters work)

The google_seo_forum= should be used for internal rewrites only and not exposed to the outside. Maybe your webserver redirected them for some reason at some point in time. *shrug*
Reply
#29
(04-19-2017, 12:30 PM)frostschutz Wrote: Sorry no idea (and it's nigh impossible for me to help, since I can't read a single thing on that page).

It does not look like that in your sitemap anyhow, e.g. https://www.irandeliver.com/forum/sitema...xml?page=1 has links like https://www.irandeliver.com/forum/%D8%AA...B%8C%D9%88 (the % notation is just how links with unicode characters work)

The google_seo_forum= should be used for internal rewrites only and not exposed to the outside. Maybe your webserver redirected them for some reason at some point in time. *shrug*

Hi,
Yes in sitemap is like what you sent and its all right.
Im just getting so many 404 error for links like I sent first and base on he google_seo_forum= thing I thought its more like a google seo plugin thing.
Reply
#30
(04-15-2017, 01:09 AM)frostschutz Wrote: @AmatureDJ: Seems to work for me (if you are talking about MyBB 1.8 builtin softdelete). Third party trashcan plugins might not work.

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)