Which mod_rewrite does ozzu.com uses?

  • luchtzak
  • Student
  • Student
  • luchtzak
  • Posts: 74

Post 3+ Months Ago

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 ;-)
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9102
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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 :)
  • luchtzak
  • Student
  • Student
  • luchtzak
  • Posts: 74

Post 3+ Months Ago

thanks a million! will try this out!
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

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?
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6255
  • Loc: Seattle, WA

Post 3+ Months Ago

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.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

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: [ 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...
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6255
  • Loc: Seattle, WA

Post 3+ Months Ago

Do you have mod_rewrite enabled?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9102
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

Oh I see... I guess WAMP doesn't come with it. lol
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6255
  • Loc: Seattle, WA

Post 3+ Months Ago

Yeah, it does. Click on the WAMP icon in your taskbar, go to Apache Modules, and enable it.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

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

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 4 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.