PDA

View Full Version : Forum has been optimizied!



sec
10-28-2004, 05:48 PM
I have just modified the forum templates and used mod_rewrite to make this forum more search engine friendly. Heres what I mean:

http://www.devdreams.com/forum/showthread.php?t=911
now goes to
http://www.devdreams.com/forum/thread911.html

http://www.devdreams.com/forum/forumdisplay.php?f=32
now goes to
http://www.devdreams.com/forum/domain-names.html


Let me know if you see any categories not working or if you find any bugs.

Thanks

daboss
10-28-2004, 08:46 PM
P, can you guide me on how to do this? I would want to do the same for the Alumni forum I'm setting up :)

CannonBallGuy
10-29-2004, 04:10 AM
Maybe somebody could write a tutorial on it ;) hehe

P.S. There is a bug...
When you search you still get things like:
/search.php?do=getnew
and /search.php?do=finduser&u=172 etc...
Plus, when you edit a post you get things like:
/editpost.php?do=editpost&p=8501

P.P.S I also came across this:
http://www.devdreams.com/forum/showthread.php?t=715&page=2

Dan
10-29-2004, 04:39 AM
I did this recently to www.webmaster-forums.co.uk but when you click the links the go to a 404 page cannot be displayed !?!?! Can you help m8?

sec
10-29-2004, 12:21 PM
@ Dan: thats because in the htacess file your using you havent named the foru correctly. they need to be called the same name as the forum and then use a dash instead of spaces.

@ CBG: yeah the tutorial I followed to do it didnt cover everything which means I will have to do the rest. All it covered was the main links going to the forums and threads...thats it..I will finish the rest off as soon as I get some spare time

CannonBallGuy
10-29-2004, 01:13 PM
Ok. cool :) Looks much tidier, btw.

Dan
10-31-2004, 04:40 AM
This is the code I'm using...

RewriteEngine On
RewriteRule ^forums.* /index.php


RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^mforum([0-9]*).* /viewforum.php?f=$1&mark=topic
RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1

RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=$1&view=next
RewriteRule ^newtopic([0-9]*).* /viewtopic.php?t=$1&view=newest
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z]*)-([a-zA-Z]*).* /viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=$1
RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=$1

Anything that is wrong?

sec
10-31-2004, 02:29 PM
the tutorial I used was at http://www.daniweb.com/techtalkforums/showthread.php?t=9379&page=1&pp=15

Take a look dan

Klaas Koopman
10-31-2004, 03:22 PM
This sounds very interesting, Python I'm contact you about this, please read your PM.

Dan
10-31-2004, 03:24 PM
lol thats 1 long ass tut, btw would that work with phpBB?

sec
10-31-2004, 03:36 PM
that exact tutorial will not work with any forum software except for vbulletin. there are however other tutorials out there which cover phpbb and invision board

Klaas Koopman
10-31-2004, 03:36 PM
Well he doesn't know how to do it in IPB, so I don't think he knows how to do it PHPbb either. Is there anyone who knows how to do this in IPB?

Dan
10-31-2004, 04:11 PM
argh python please help, I screwed up www.webmaster-forums.co.uk lol every link = www.webmaster-forums.co.uk :( please help m8

sec
10-31-2004, 04:13 PM
ahhhh. did you not read what I just said?


that exact tutorial will not work with any forum software except for vbulletin. there are however other tutorials out there which cover phpbb and invision board

You are using phpBB and it wont work with that

Klaas Koopman
11-01-2004, 07:46 AM
lol, did you even backup your forum? If so I'd suggest using that backup to get it how it was!

Dan
11-01-2004, 09:48 AM
ahhhh. did you not read what I just said?



You are using phpBB and it wont work with that

:-/ I didn't use that tut....But I used another yet it didn't work, can you please help ?

sec
11-01-2004, 11:19 AM
speak to you on msn

CannonBallGuy
11-01-2004, 04:19 PM
Why cant you just find a decent tutorial and follow that like everyone else does?

Dan
11-02-2004, 10:09 AM
Shut it CBG it's a lot harder than you think !

CannonBallGuy
11-02-2004, 11:04 AM
Shut it yourself. Before I do it for you.
If python, and thousands of other people, can work out how to do it, why can you not?
I thought the Cosine rule was difficult...
The formula is 'a' squared = 'b' squared + 'c' squared - 2 X 'a' X 'b' cos 'A'.
but actually, its really damn easy.

So go work out how to do it yourself. :P

Klaas Koopman
11-02-2004, 11:06 AM
Hey CBG you know how to do it in IPB or know a tuto for that, if so let me know :D

sec
11-02-2004, 01:06 PM
Shut it yourself. Before I do it for you.
If python, and thousands of other people, can work out how to do it, why can you not?
I thought the Cosine rule was difficult...
The formula is 'a' squared = 'b' squared + 'c' squared - 2 X 'a' X 'b' cos 'A'.
but actually, its really damn easy.

So go work out how to do it yourself. :P

hey you donig cosine rule in school now?? Cause I am

Yeah its pretty easy but have you come to the questions where they combine cosine and sine rule? now that can be confusing, lol

Klaas Koopman
11-02-2004, 01:53 PM
lol that is all soooo easy :D in dutch it's called cosinus and sinus

daboss
11-02-2004, 11:53 PM
sines and cosines are a waste of time - you'll be using a calculator to crunch the formulas later on in your working life... :) but then again, i guess it's good to know the basics.

CannonBallGuy
11-03-2004, 11:15 AM
Hey CBG you know how to do it in IPB or know a tuto for that, if so let me know :D
I have no idea how to use htaccess to optimize a forum like Py did. lol. :)

To Py: Yeah. We have Maths to do tomorrow and I guess we will be combining cosine n sine then...

And I agree, A HELL of a lot of what I ahve leant in school over the last year n a bit is a totally f***ing waste of time and brain/memory space.
How the f*** is the cosine rule gonna help you if your a doctor?
How will the ability to solve simultaneous equations (remember them?) help you if your gonna be a lawyer?

sec
11-03-2004, 11:25 AM
lol...I remember my friend asking me what the whole point of learning nth term equations was in maths....I just replied....perhaps if you work in a warehouse you might want to do an equation to work out how to stack them,

CannonBallGuy
11-03-2004, 11:52 AM
lol. nice one... Loads of what we learn is only useful if you go into that sort of job...
So lots of maths is only good if you go into accountancy or something...
Lots of biology is only good if you go into that sort of thing... lol.
All that specific stuff should be in the degrees... and to a lesser extent, A(s)-levels.

jukemann
11-07-2004, 06:50 PM
ahhhh. did you not read what I just said?



You are using phpBB and it wont work with that

phpBB uses a different hack you can find the one I used for Link-Forum.com (http://www.link-forum.com/)

Here:
http://able2know.com/forums/about15132-0.html