PhpBB mod_rewrite Static Pages Problem

  • Eric Bland
  • Born
  • Born
  • Eric Bland
  • Posts: 3

Post 3+ Months Ago

My mod_rewrite is giving me some trouble. When I click on the different forums, it keeps showing the index page only. The url is static and changes with the different forums, but the forums do not open to see the posts. Any ideas?
  • overload
  • Newbie
  • Newbie
  • User avatar
  • Posts: 12
  • Loc: Craiova, Romania

Post 3+ Months Ago

can you show us htaccess?
  • madmonk
  • Mastermind
  • Mastermind
  • madmonk
  • Posts: 2115
  • Loc: australia

Post 3+ Months Ago

work backwards with your mod rewrite, back to square one and you will find the error in yr code.
mod rewrite's not a massive chunk of code anyway..
  • Eric Bland
  • Born
  • Born
  • Eric Bland
  • Posts: 3

Post 3+ Months Ago

This is the mod-rewrite .htaccess, the urls change but the forums and topics do not open. It just shows the index with different static urls when clicking the forums. Any ideas? Thanks, Eric

Code: [ Select ]
RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) post-.html$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* post-.html$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* about.html$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) about.html$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest about.html$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* about.html$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* about.html$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* about.html$1 [L,NC]
RewriteRule ^about([0-9]*).html about.html$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* forum-.html$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* about.html$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* about.html$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html forum-.html$1 [L,NC]
RewriteRule ^forum-([0-9]*).* forum-.html$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* forum-.html$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* about.html$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* about.html$1&view=next [L,NC]
  1. RewriteEngine On
  2. RewriteRule ^forums.* index.php [L,NC]
  3. RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) post-.html$1&highlight=$2 [L,NC]
  4. RewriteRule ^post-([0-9]*).* post-.html$1 [L,NC]
  5. RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* about.html$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
  6. RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) about.html$1&highlight=$2 [L,NC]
  7. RewriteRule ^about([0-9]*).html&view=newest about.html$1&view=newest [L,NC]
  8. RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* about.html$1&postdays=$2&postorder=$3&start=$4 [L,NC]
  9. RewriteRule ^about([0-9]*)-([0-9]*).* about.html$1&start=$2 [L,NC]
  10. RewriteRule ^about([0-9]*).* about.html$1 [L,NC]
  11. RewriteRule ^about([0-9]*).html about.html$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
  12. RewriteRule ^mark-forum([0-9]*).html* forum-.html$1&mark=topics [L,NC]
  13. RewriteRule ^updates-topic([0-9]*).html* about.html$1&watch=topic [L,NC]
  14. RewriteRule ^stop-updates-topic([0-9]*).html* about.html$1&unwatch=topic [L,NC]
  15. RewriteRule ^forum-([0-9]*).html forum-.html$1 [L,NC]
  16. RewriteRule ^forum-([0-9]*).* forum-.html$1 [L,NC]
  17. RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* forum-.html$1&topicdays=$2&start=$3 [L,NC]
  18. RewriteRule ^ptopic([0-9]*).* about.html$1&view=previous [L,NC]
  19. RewriteRule ^ntopic([0-9]*).* about.html$1&view=next [L,NC]
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Are you sure your server has mod_rewrite enabled? I think by default Apache installations do not have mod_rewrite installed. You might need to check with your host to make sure you are able to use mod_rewrite or have them enable it for you.

If your Apache does have mod_rewrite working then your problem may be something else. I would start there though to make sure.
  • badman_vietnam
  • Born
  • Born
  • badman_vietnam
  • Posts: 4

Post 3+ Months Ago

hi everybody !
I am a new member, i am searching about mod_rewrite in Apache server. My problem below:
My local server installed Linux 8.13 and i added a lot of alias, Now i want to use mod_rewrite for each alias. Please help me. What can i do at my local server ?
I am sure that my server have supported mod_rewrite .

Post Information

  • Total Posts in this topic: 6 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
 
 

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