Hello, please sign in or register
You are here: Home

PHPBB Search Engine Friendly

'Search engine friendly' to me means, to get rid of all those horrible URL variables e.g. "./forums/viewforum.php?f=5" and make them look like "./forums/a_really_cool_forum.html". You get the gist?

If your sitting comfortably here's a list of files to edit

Prerequisites: Apache, PHPBB - both successfully installed. And that apache has read access to .htaccess

Create .htaccess in the root of the forums directory

[CODE=./.htaccess] RewriteEngine On RewriteRule ^forums.* index.php [L,NC] RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC] RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC] RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC] RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC] RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC] RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC] RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC] RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC] RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC] RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC] RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC] RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC] RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC] RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC] RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC] RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC] RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC] RewriteRule ^user-([0-9]*).html profile.php?mode=viewprofile&u=$1 [L,NC] RewriteRule ^category-([0-9]*).html index.php?c=$1 [L,NC] RewriteRule ^index.html index.php [L,NC] # NOTE: # and for each forum: # RewriteRule ^friendly-url.html viewforum.php?f={$forum_id} [L,NC] [/CODE] [CODE=/includes/page_header.php]set_filenames(array( 'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl') ); # Insert if(!$userdata['session_logged_in']){ ob_start(); function replace_for_mod_rewrite(&$s){ $urlin = array( "'(? [/CODE] [CODE=/includes/functions.php]sql_close(); } /** * INSERT: */ if(!$userdata['session_logged_in']){ if(stristr($url,'http://')){ header('Location: ' . $url); exit; } } [/CODE] [CODE=./includes/page_tail.php]sql_close(); /** * INSERT: */ if(!$userdata['session_logged_in']){ $contents = ob_get_contents(); ob_end_clean(); echo replace_for_mod_rewrite($contents); global $dbg_starttime; } [/CODE]

Comments

1
Thank you thank you thank you thank you!!
Created 09/01/15
1
replica hermes porcelain neckties replica hermes birkin bags china tumblr ghqvepriqod
Created 10/01/15
1
ogs, results, Surroundings Nike jordan sneakers, higher credit scoring activities, and many more. September 2005 the environment Jordans part vans has a record with the Ervin Jordans shoes and boots. overcom almost all 10 michael jordan troubles, eas...
Created 12/01/15
1
ogs, results, Surroundings Nike jordan sneakers, higher credit scoring activities, and many more. September 2005 the environment Jordans part vans has a record with the Ervin Jordans shoes and boots. overcom almost all 10 michael jordan troubles, eas...
Created 13/01/15
1
Thanks for the comments everyone! For those that are having trouble viewing the difference, look closely at the COLOR in the noise, NOT the texture. Again, this tutorial simply diminishes the color, giving the illusion of less noise. It's a fast and ...
Created 13/01/15
1
434218 642031The truth is and see if the Hcg diet protocol and as a consequence HCG Drops undoubtedly are a in fact quick approach to be able to shed pounds; although the healthy diet has a strong will most likely moreover sizable focus to undertake ...
Created 14/01/15
1
3rd r Tiffany M3tamix Records - G(??????)???! Necklaces specially if it is given simply by the man ???????? close friends as well as many adoring a single, Its throughout smaller measurement possessing an easy to use style and design as well as the d...
Created 17/01/15
1
I can't see the difference between the before and after, but I will give this a try. I usually resort to using Noise Ninja which works miracles.
Created 19/01/15
1
replica hermes flats enamel bracelet fake hermes dogon wallet black uocuspylsq
Created 21/01/15
1
Noise reducing software does sound like the best option (although I haven't had the chance to try any yet). I've been doing something similar to the process that you wrote about, though. I've been converting my image to Lab mode, then applying a Gaus...
Created 24/01/15
1
Quick service, easy transaction. THANKS.
Created 25/01/15
0921maoqiuyun
cheap nba jerseys, http://www.nbajerseys.net/ jordan shoes, http:/...
Created 21/09/15
ninestab123
ninest123 One canada goose pas cher gucci outlet thing
Created 21/07/16
Title*
Comment

Prove you are not a robot

To prove you are not a robot, please type in the six character code you see in the picture below
Security confirmation codeI can't see this!
Contact
Name*
Email never shown*
Home Page

Author

Andrew Dodson
Since:Feb 2007

Comment | flag

Categories

Bookmark and Share