Google SEO Rewrites
MyBB Offline
Junior Member
**
Posts: 7
Joined: Mar 2013
Post: #1
Google SEO Rewrites
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.) ?

03-03-2013 04:08 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: Google SEO Rewrites
I don't think so, at least without modifying the plugin itself.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-03-2013 04:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
MyBB Offline
Junior Member
**
Posts: 7
Joined: Mar 2013
Post: #3
RE: Google SEO Rewrites
(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]

03-03-2013 04:39 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #4
RE: Google SEO Rewrites
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.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-04-2013 07:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
MyBB Offline
Junior Member
**
Posts: 7
Joined: Mar 2013
Post: #5
RE: Google SEO Rewrites
(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.

03-04-2013 10:25 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #6
RE: Google SEO Rewrites
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


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 03-05-2013 05:57 AM by Sama34.)
03-05-2013 05:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
MyBB Offline
Junior Member
**
Posts: 7
Joined: Mar 2013
Post: #7
RE: Google SEO Rewrites
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??

(This post was last modified: 03-05-2013 10:19 AM by MyBB.)
03-05-2013 10:15 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #8
RE: Google SEO Rewrites
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.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-06-2013 06:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
MyBB Offline
Junior Member
**
Posts: 7
Joined: Mar 2013
Post: #9
RE: Google SEO Rewrites
(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.
(This post was last modified: 03-06-2013 03:23 PM by MyBB.)
03-06-2013 02:52 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #10
RE: Google SEO Rewrites
(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.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-07-2013 07:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: