Post Reply  Post Thread 
Pages (7): « First < Previous 1 2 3 [4] 5 6 7 Next > Last »
MyBB SEO 1.0 Beta!
Pacifier
Administrator
*******

Posts: 195
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #31
RE: MyBB SEO 1.0 Beta!

I don't see why it can't work as long as you have the .htaccess file in your forum directory and your host have mod_rewrite and .htaccess enabled for you. Check to see what's inside .htaccess.

12-30-2006 06:49 PM
Find all posts by this user Quote this message in a reply
Andy
Junior Member
**

Posts: 11
Group: Registered
Joined: Dec 2006
Status: Offline
Reputation: 0
Post: #32
RE: MyBB SEO 1.0 Beta!

Pacifier Wrote:
I don't see why it can't work as long as you have the .htaccess file in your forum directory and your host have mod_rewrite and .htaccess enabled for you. Check to see what's inside .htaccess.


There isn't anything inside the file, that must be the reason why it doesn't work... do you know what I need to put in it?

12-30-2006 09:01 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 195
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #33
RE: MyBB SEO 1.0 Beta!

Use the following code inside .htaccess file:

Code:
# //seo_mod_start
RewriteEngine On
# Uncomment the following and add your forum path if rewrites arent working properly
#RewriteBase /mybb/
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]
# //seo_mod_end

12-30-2006 09:10 PM
Find all posts by this user Quote this message in a reply
Andy
Junior Member
**

Posts: 11
Group: Registered
Joined: Dec 2006
Status: Offline
Reputation: 0
Post: #34
RE: MyBB SEO 1.0 Beta!

I've added the stuff you gave me and over-writed the file, but it still doesn't want to work.

This is what I have in portal.php:

Code:
while($thread = $db->fetch_array($query))
    {
// +mod - seo mod..
$threadcache[$thread['tid']]['subject'] = $thread['subject'];


and

Code:
while($announcement = $db->fetch_array($query))
{
// +mod - seo mod..
$threadcache[$announcement['tid']]['subject'] = $announcement['subject'];


Is this correct?

12-30-2006 09:34 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 195
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #35
RE: MyBB SEO 1.0 Beta!

Yes, that's correct. However, it's either related to "mod_rewrite" not being enabled or the .htaccess file being empty or not allowed on your account. Try opening the .htaccess file again to see if the data is there. (maybe it wasn't saved properly?)

Also, try refreshing your topics/forums, as the data might be cached by your browser.

12-30-2006 09:38 PM
Find all posts by this user Quote this message in a reply
Andy
Junior Member
**

Posts: 11
Group: Registered
Joined: Dec 2006
Status: Offline
Reputation: 0
Post: #36
RE: MyBB SEO 1.0 Beta!

Nope, it's not the browser. I tried both IE and FF. And yes, I'm 100% positive I have the information you gave me in the .htaccess file. (I would attach it if I could)

12-30-2006 09:47 PM

This post was last modified: 12-30-2006 09:47 PM by Andy.

Find all posts by this user Quote this message in a reply
windrider
Junior Member
**

Posts: 6
Group: Registered
Joined: Dec 2006
Status: Offline
Reputation: 0
Post: #37
RE: MyBB SEO 1.0 Beta!

Pacifier, another idea. Why not append the number before the topic and forum name instead of after.

Like so:

http://spicefuse.com/t5-4-MyBB-SEO-10-Beta.html

It will make the URL more human readable and also looks pretty.

12-31-2006 10:50 AM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 195
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #38
RE: MyBB SEO 1.0 Beta!

Well, that's a good idea too, however I don't think it makes a great deal of different whether it comes first or comes later. I think human readability isn't really needed when it comes to such links.

Coming up in early-mid January:

- Cleaning up of multiple keyword separators in the URL, such as MyBB [beta] SEO becoming MyBB--beta-SEO or something similar that. In short, multiple instances of "-" will be stripped to a single one.
- Dynamic description tags (derived off the first post in topic)
- [maybe] Inclusion of forum-title/forum-id in the url
- Better formatting of URLs on threads.

12-31-2006 12:17 PM

This post was last modified: 12-31-2006 12:49 PM by Pacifier.

Find all posts by this user Quote this message in a reply
windrider
Junior Member
**

Posts: 6
Group: Registered
Joined: Dec 2006
Status: Offline
Reputation: 0
Post: #39
RE: MyBB SEO 1.0 Beta!

Nice. Keep up the good work!

12-31-2006 05:54 PM
Find all posts by this user Quote this message in a reply
Andy
Junior Member
**

Posts: 11
Group: Registered
Joined: Dec 2006
Status: Offline
Reputation: 0
Post: #40
RE: MyBB SEO 1.0 Beta!

So nobody knows why this doesn't want to work for me?

12-31-2006 09:21 PM
Find all posts by this user Quote this message in a reply
Pages (7): « First < Previous 1 2 3 [4] 5 6 7 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: