SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Programming / Optimizing URL structure
Posted:  18 May 2005 20:44
First of all I just want to say GREAT work, this is a killer program. I would like to add keywords to the URL generation process however.

RewriteRule ^forum([0-9]+)\.htm$./index.php?a=vforum&f=$1

could be turned into RewriteRule^keyword-forum([0-9]+)\.htm$ ./index.php?a=vforum&f=$1

If you could help me add my main keyword to the forum and article URL, I would be very grateful. I don't quite know enough about PHP to dig through your code but point me in the right direction and I should be able to help myself.

Thanks,

- Dan
Posted:  19 May 2005 15:27
ashtar5,
you need to change the rewrite rules AND the url generating functions in skinning.php -> get_forum_url() and get_topic_url()
Posted:  19 May 2005 16:21
estoy probando esto para pasarlo al espaƱol
Posted:  20 May 2005 09:28
is there a chance you can make the default installation of SEO board, with SEO friendly urls for the postings and forum topics?
Posted:  20 May 2005 14:33
Quote:
is there a chance you can make the default installation of SEO board, with SEO friendly urls for the postings and forum topics?
No, because the htaccess file needs to set the rewrite rules. If I provide a default htaccess file, it will overwrite the one already present on some hosts.
Posted:  29 May 2005 09:00
Hristo, Thanks for the response. I have another question, maybe you can help me. Search engine spiders have picked up on the dunamic URLs, and I wish to redirect any external requests for the dynamic links. I've been running into loops however, perhaps you can help.

The example I'm working with is the following, assuming I have the htaccess file in the forum directory:

Rewritecond %{REQUEST_URI} index\.php(.*)$
RewriteRule ^index\.php$ /index.php%1 [L]

Any help would be appreciated..I think it has to do the the fact that I am pointing to www.site.com/forums/ , and it is loading the index.php page by default. (Which it's supposed to do, however I don't want the search engines to see the .php extension.)

Thanks,

- Dan
Posted:  29 May 2005 12:23
what exactly are you trying to achieve?
Posted:  30 May 2005 00:54
Hristo, search engine spiders have picked up on the dynamic URLs. I want the spiders to only see the static URLs. The only way to do that (as I understand) is to redirect all external requests for the dynamic URLs.

So, if a search engine tried to access /index.php(.*) for example, (anything beginning with index.php), it would be redirected to the main site. Since I am linking to the static forum pages from my main site, this results in duplicate pages on the search engines.

On another note, I manged to skin the forum using my current page layout and menus. Have a look, http://www.beyondmeditation.com/forums/

Thanks,
Daniel
Posted:  30 May 2005 09:47
Nice work.
I don't think you need to try such stuff. The previously indexed dynamic URLs will get deindexed because search engines will not discover links to them any more. They will get dropped.

btw. I think there's sth wrong with your mysql database. I tried reloading a couple of times. It is very slow for me. It's like it is almost timing out. And clicking on some of the links on the left menu gave me errors (page not found).
Posted:  30 May 2005 11:00
Hey Hristo,

Thanks for the advice, no doubt google is just slow at updating it's content. I had server errors all night, it's all up and running again. Thanks again for a great  piece of software!

- Daniel
Posted:  19 Jan 2006 22:08
Sorry to continue this old post, but I'd like to know how can I put the title of the forum, and the title of the post in a URL.

In skinning.php

get_forum_url()
You can see forum$forum_id but I want to write the title, I tried with $forum_name and $forum_title, but it's impossible. I think I should modify another file.. can you helpme pelase?

and get_topic_url()
The same for this one, for "artcile$topic_id". I want  $topic_title

I think it's easy.. but I'm a little bit newbie
Posted:  20 Jan 2006 14:08
You cannot do that because the mod-rewrite cannot figure out with which parameters to call the script.