minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Other miniBB Community Forum / Other /

Even more Search Engine friendly mod_rewrite

 Page:  1  2  3  4  »» 
Anonymous
Guest
#1 | Posted: 7 May 2005 14:40
Reply 
Hello

I have enabled the mod_rewrite and it works just fine.

But is there a way of making the mod_rewrite even more search engine friendly ?

One suggestion could be to include the name of the forum or the name of the topic in the html file name.

This would mean that instead of displaying a filename called "1_5_0.html" it would display "1_nameoftopic_0.html"

This would most certainly result in more hits from search engines - but is it possible and how can this be done?

Please help me out with this one
Anonymous
Guest
#2 | Posted: 7 May 2005 14:50
Reply 
I think you have got the wrong idea, what you want to achieve is make the file name more user friendly.

This plays no part in making the address friendlier to search engines, they do not care about the url (in most cases) so long as it does not contain any variables or code.

What you are suggesting is not hard in theory, however if you do not know already then you will have a big task in front of you. Mod rewrite does not create the links that are output to the page, it only rewrites the links on the page if it meets a certain rule.

That basically means that the links for minibb mod rewrite are already hardcoded to a specific output.
realitybytes
Forums Member
#3 | Posted: 7 May 2005 14:53 | Edited by: realitybytes
Reply 
p.s. addon from above forgot to login.

I do not think that it is needed, you will be making a lot of work for yourself with no benefit.

All the popular search engines do not have links from the page url in specific instead they use the page title and description, and the link is shaded out at the bottom of the description, how often do you look at the url and think I will not visit that link because it is not user friendly.
Anonymous
Guest
#4 | Posted: 7 May 2005 15:09
Reply 
The reason I want to do this, is because google and yahoo both give higher placements to sites, where the search-term is included in the URL

For example:
If I search for the word "miniBB" on Google, the sites where the word miniBB are part of the URL, will rank higher, that sites where miniBB is not part of the URL

This means that a page with information on miniBB that has the address http://something.com/something.html

will rank lower than a page with the address http://something.com/miniBB_page.html


Doing a mod_rewrite that gives you file names that include a lot of words is a sure way of getting extra hits - that is why it is so important.
Anonymous
Guest
#5 | Posted: 7 May 2005 15:28
Reply 
Yes I am aware of what that, the thing is do you really need this for a forum?

The simple fact of getting the pages indexed is good enough to give you better rankings which in turn will boost your pages that you really want the hits for.

That is unless you are only running a forum, which rprovides very little oppourtunity to earn money, so page rankings is irrelevant.

Personally I do not think it is so important that a forum is ranked high the fact it is indexed should be enough.
Anonymous
Guest
#6 | Posted: 7 May 2005 15:38
Reply 
The sucess of my site will depend heavily on my ability to get hits and returning visitors.

I simply need to get a high ranking on search engines.

I know that this should not be necessary in an ideal world, but I have invested many hours and a lot of money in my site. I simply need to get good rankings on google and yahoo.

Could someone please tell me how to do a mod_rewrite that includes the name of the topic or the name of the forum in the hmtl file name ?
Anonymous
Guest
#7 | Posted: 7 May 2005 15:48
Reply 
Anyways I had a quick search if you want to implement it you need to seach int he files for $mod_rewrite

I started got several hits in page bb_func_ldisc.php

the rule you need to create will be something similar to the following depending on what it is you want in the extention.

You will need to change the original format of the urls to include the forum title or topic

RewriteRule ^([0-9]+)_([-0-9]+)_([A-Z]+)\.html$ ./index.php?action=vtopic&forum=$1&page=$2&forum=$3

or something along those lines.

good luck if you go ahead with it.
Anonymous
Guest
#8 | Posted: 7 May 2005 15:53
Reply 
be sure to back up any files before changing, the hardest part will be rewriting the urls to include the forum title, which might require you to access the database or at least modify the database request that obtains creates the original links.
Anonymous
Guest
#9 | Posted: 7 May 2005 15:55
Reply 
index.php?action=vtopic&forum=$1&page=$2&forum=$3

this is how you want the new extention to be before mod rewrite. adding the forum title to the end should not cause any problems with minibb.
Anonymous
Guest
#10 | Posted: 7 May 2005 15:57
Reply 
sorry scrap that change it to forumname

index.php?action=vtopic&forum=$1&page=$2&forumname=$3

RewriteRule ^([0-9]+)_([-0-9]+)_([A-Z]+)\.html$ ./index.php?action=vtopic&forum=$1&page=$2&forumname=$3

so you need to update the database request to pull forum title then put it in a variable throw it on the end of the mod rewrite creation in minibb and you are done.
Team
8-)
#11 | Posted: 9 May 2005 10:33
Reply 
I leave this part on you guys... this is possible to implement, but we will not include it in official release, just because - what you will do if your topic contains non-English characters? Do not forget that English is not the only language in this world.
Moony
Forums Member
#12 | Posted: 12 May 2005 21:41
Reply 
Team

Is it ok if I change "{$main_url}/{$forum}_{$topic}_" to "{$main_url}/{$forum}/{$topic}/" It looks more url-like to me.
Team
8-)
#13 | Posted: 13 May 2005 12:15
Reply 
Moony: then you also need to change a lot within the scripts. Search for $mod_rewrite and find necessary scripts to edit.
Chris Gwynne
Forums Member
#14 | Posted: 10 Apr 2006 12:25
Reply 
When using mod_rewrite you only get to use these...

* List of topics: [FORUM_ID]_[PAGE].html
* List of threads: [FORUM_ID]_[TOPIC_ID]_[PAGE].html

[FORUM_ID] and [TOPIC_ID] and [PAGE]

Are these the only variables than can be used? Is it not possible to use the forum title and post title within it?
Team
8-)
#15 | Posted: 10 Apr 2006 13:27
Reply 
What about titles containing non-English characters? Russian? Chinese? Japanese? English is not the only one language on earth.

We have international software, and the digits are the only one method of implementing it.

In general, you should also prove why you need it... we have already discussed it before many times, and nobody is able to prove, why our mod_rewrite URLs are less important than if they contain text.

?
 Page:  1  2  3  4  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 37
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®