MyBB Hacks

Full Version: Google SEO Rewrites
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is it possible to achieved a url structure for threads to appear like this, using the Google SEO mod?

Thread structure:

Code:
http://www.mysite.com/Forums/t=4854910/thread-title-here.html


(With the "t=" being the thread ID.)

And for the forums to look like this:

Code:
http://www.mysite.com/Forums/f=59/general-discussion.html


(With the "f=" being the forum ID.) ?

I don't think so, at least without modifying the plugin itself.
(03-03-2013 04:21 PM)Sama34 Wrote: [ -> ]I don't think so, at least without modifying the plugin itself.

The plugin features options within the settings that allow you to edit the URL schemes. I just don't know the proper .htaccess code to use. Here is the default:

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

You can't choose where to show the TID/FID within the url, it will always be at the end of the url. So maybe you can achieve something like:

Code:
http://www.mysite.com/Forums/thread/title-here-4854910.html


But not as you showed in your first post.

(03-04-2013 07:42 AM)Sama34 Wrote: [ -> ]You can't choose where to show the TID/FID within the url, it will always be at the end of the url. So maybe you can achieve something like:

Code:
http://www.mysite.com/Forums/thread/title-here-4854910.html


But not as you showed in your first post.


Well, could you help me with a .htaccess code and URL scheme to help me achieve a url like that? Also, does that mean I could make forums like that, too?

Code:
http://www.mysite.com/Forums/General-Discussion-23.html

'23' being the forum ID?
All these rewrites do is mask the URL to what I put it to be. I just don't know the proper variables to put / use in the settings and what rewrite to put in the .htaccess. I would really appreciate if someone could help me do this.

Use
forums/thread/{url}.html
forums/{url}.html

For threads and forums respectively and force the URL unifier, then go to the plugins page and Google SEO should generate the .htaccess code for you (I think it is capable of generating the code for such schemes).

That will generate URLS like:

Code:
http://www.mysite.com/forums/thread/thread-name-972.html
http://www.mysite.com/forums/forum-name-145.html

Thanks, that worked, but when I did that, all of the images were broken.
[Image: 1d4e9f8f8ae24f54b8fc684.png]

And the url of them were showing as this:

Code:
/forums/thread/images/mytheme/image.gif


Also, when I go to new reply or new thread, it keeps showing 404 not found because it goes to

Code:
/Forums/newthread.php?fid=4

Instead of:

Code:
/newthread.php?fid=4


How would I fix this??

You need to add the base tag in your headerinclude for all relative urls.
http://www.w3schools.com/tags/tag_base.asp

There are some issues with the type of url you want to use.
(03-06-2013 06:04 AM)Sama34 Wrote: [ -> ]You need to add the base tag in your headerinclude for all relative urls.
http://www.w3schools.com/tags/tag_base.asp

There are some issues with the type of url you want to use.

Thanks, so are you saying that it is not possible to make the IDs appear like this in a url, for example? (http://mysite.com/Forums/thread/21647/test-thread.html or http://mysite.com/Forums/thread/test-thread/21647.html?

Because the urls look very ugly with 2 dashes at the end, then the ID. Is it possible to change these dashes to just one dash, or a slash, like I said above?

Also, when I turn the uniquifier on, it also makes my user profiles like this:
http://mysite.com/{username}--2
When they are actually just like: http://mysite.com/ZingaBurger, for example. Is there a way to blacklist using the uniquifier for the user URLs? All I want basically, is the title ID or forum ID in the url, along with the title or forum name in it, like above, except I want my user profile urls to be how they used to

Thanks for your help. I REALLY appreciate it.
(03-06-2013 02:52 PM)MyBB Wrote: [ -> ]so are you saying that it is not possible to make the IDs appear like this in a url, for example? (http://mysite.com/Forums/thread/21647/test-thread.html or http://mysite.com/Forums/thread/test-thread/21647.html?

Because the urls look very ugly with 2 dashes at the end, then the ID.

No, I'm saying it is not possible because it is not possible.

(03-06-2013 02:52 PM)MyBB Wrote: [ -> ]Is there a way to blacklist using the uniquifier for the user URLs?

No, it is not.

This, of course, without modifying the core and there I wouldn't know.
Pages: 1 2
Reference URL's