Which mod_rewrite does ozzu.com uses?

Post July 18th, 2008, 1:30 pm

Hi all,

where do I find the mod_rewrite tool that make phpbb 3.0 forums give these urls:

general-discussion/
general-discussion/new-comps-are-now-t89853.html

I am desperately looking for this ;-)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 18th, 2008, 1:30 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 7321
  • Loc: Seattle, WA
  • Status: Offline

Post July 18th, 2008, 1:52 pm

It is based off of this:

http://www.phpbb-seo.com/boards/advance ... t1219.html

I had to do a good deal of customizing to integrate it into ozzu since ozzu has multiple languages such as:

http://www.ozzu.com/es/debate-general/nueva-comps-hasta-ahora-t89853.html

and

http://www.ozzu.com/de/allgemeine-diskussion/neu-sind-jetzt-comps-t89853.html

But I believe that is all you wanted anyway :)
Ozzu Hosting - Want your website on a fast server like Ozzu?
Contact US for more information about our plans and rates

Post July 18th, 2008, 1:56 pm

thanks a million! will try this out!
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7092
  • Loc: Ozzuland
  • Status: Offline

Post July 21st, 2008, 3:05 pm

Thanks for that mod Bigwebmaster.

The problem with it, the .htaccess doesn't work for me... I get 500 Internal Server Error when I try to use it and it doesn't matter how I edit it or what kind of settings/options I use for it.

Any help?
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5474
  • Loc: Rochester, NY
  • Status: Offline

Post July 21st, 2008, 3:17 pm

Check your Apache logs Bogey. 5xx errors mean something is wrong with your configuration (in this case, the .htaccess). The log will tell you what happened.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7092
  • Loc: Ozzuland
  • Status: Offline

Post July 21st, 2008, 3:20 pm

Here is what it tells me
Quote:
[Mon Jul 21 17:04:34 2008] [alert] [client 127.0.0.1] C:/wamp/www/wd_rd/forum/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration


[EDIT:] Here is what the PHPBB SEO Mods spits out
Code: [ Download ] [ Select ]
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz http://www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^wd_rd/forum/forum\.html$ /wd_rd/forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^wd_rd/forum/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /wd_rd/forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^wd_rd/forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^wd_rd/forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^wd_rd/forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^wd_rd/forum/member([0-9]+)\.html$ /wd_rd/forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^wd_rd/forum/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /wd_rd/forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^wd_rd/forum/group([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^wd_rd/forum/post([0-9]+)\.html$ /wd_rd/forum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^wd_rd/forum/active-topics(-([0-9]+))?\.html$ /wd_rd/forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^wd_rd/forum/unanswered(-([0-9]+))?\.html$ /wd_rd/forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^wd_rd/forum/newposts(-([0-9]+))?\.html$ /wd_rd/forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^wd_rd/forum/the-team\.html$ /wd_rd/forum/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wd_rd/forum/([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /wd_rd/forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
  1. # Lines That should already be in your .htacess
  2. <Files "config.php">
  3. Order Allow,Deny
  4. Deny from All
  5. </Files>
  6. <Files "common.php">
  7. Order Allow,Deny
  8. Deny from All
  9. </Files>
  10. # You may need to un-comment the following line
  11. # Options +FollowSymlinks
  12. # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
  13. RewriteEngine On
  14. # REWRITE BASE
  15. RewriteBase /
  16. # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
  17. #####################################################
  18. # PHPBB SEO REWRITE RULES - ADVANCED
  19. #####################################################
  20. # AUTHOR : dcz http://www.phpbb-seo.com
  21. # STARTED : 01/2006
  22. #################################
  23. # FORUMS PAGES
  24. ###############
  25. # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
  26. # RewriteRule ^wd_rd/forum/forum\.html$ /wd_rd/forum/index.php [QSA,L,NC]
  27. # FORUM
  28. RewriteRule ^wd_rd/forum/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /wd_rd/forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
  29. # TOPIC WITH VIRTUAL FOLDER
  30. RewriteRule ^wd_rd/forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
  31. # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
  32. RewriteRule ^wd_rd/forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
  33. # TOPIC WITHOUT FORUM ID & DELIM
  34. RewriteRule ^wd_rd/forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
  35. # PROFILES SIMPLE
  36. RewriteRule ^wd_rd/forum/member([0-9]+)\.html$ /wd_rd/forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
  37. # USER MESSAGES SIMPLE
  38. RewriteRule ^wd_rd/forum/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /wd_rd/forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
  39. # GROUPS SIMPLE
  40. RewriteRule ^wd_rd/forum/group([0-9]+)(-([0-9]+))?\.html$ /wd_rd/forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
  41. # POST
  42. RewriteRule ^wd_rd/forum/post([0-9]+)\.html$ /wd_rd/forum/viewtopic.php?p=$1 [QSA,L,NC]
  43. # ACTIVE TOPICS
  44. RewriteRule ^wd_rd/forum/active-topics(-([0-9]+))?\.html$ /wd_rd/forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
  45. # UNANSWERED TOPICS
  46. RewriteRule ^wd_rd/forum/unanswered(-([0-9]+))?\.html$ /wd_rd/forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
  47. # NEW POSTS
  48. RewriteRule ^wd_rd/forum/newposts(-([0-9]+))?\.html$ /wd_rd/forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
  49. # THE TEAM
  50. RewriteRule ^wd_rd/forum/the-team\.html$ /wd_rd/forum/memberlist.php?mode=leaders [QSA,L,NC]
  51. # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
  52. # FORUM WITHOUT ID & DELIM
  53. # THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
  54. RewriteCond %{REQUEST_FILENAME} !-f
  55. RewriteCond %{REQUEST_FILENAME} !-d
  56. RewriteRule ^wd_rd/forum/([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /wd_rd/forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
  57. # END PHPBB PAGES
  58. #####################################################


[EDIT 2:] Also, why do I have about 4 errors per minute? on my apache log and most of it is file not found... I never see those errors on my screen...
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5474
  • Loc: Rochester, NY
  • Status: Offline

Post July 21st, 2008, 3:28 pm

Do you have mod_rewrite enabled?
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 7321
  • Loc: Seattle, WA
  • Status: Offline

Post July 21st, 2008, 3:29 pm

Bogey wrote:
Here is what it tells me
Quote:
[Mon Jul 21 17:04:34 2008] [alert] [client 127.0.0.1] C:/wamp/www/wd_rd/forum/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration



Sounds like your webhost doesn't have the mod_rewrite compiled with Apache. You will need to contact them and request it.
Ozzu Hosting - Want your website on a fast server like Ozzu?
Contact US for more information about our plans and rates
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7092
  • Loc: Ozzuland
  • Status: Offline

Post July 21st, 2008, 3:44 pm

Oh I see... I guess WAMP doesn't come with it. lol
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5474
  • Loc: Rochester, NY
  • Status: Offline

Post July 21st, 2008, 6:42 pm

Yeah, it does. Click on the WAMP icon in your taskbar, go to Apache Modules, and enable it.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7092
  • Loc: Ozzuland
  • Status: Offline

Post July 21st, 2008, 8:28 pm

Alright... now it doesn't give me the error... no it doesn't do anything at all... doesn't rewrite anything.

Bu the way spork... thanks for that :D
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.