PhpBB mod_rewrite Static Pages Problem

  • Eric Bland
  • Born
  • Born
  • No Avatar
  • Joined: May 15, 2004
  • Posts: 3
  • Status: Offline

Post May 24th, 2004, 10:51 am

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?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 24th, 2004, 10:51 am

  • overload
  • Newbie
  • Newbie
  • User avatar
  • Joined: Jan 22, 2004
  • Posts: 12
  • Loc: Craiova, Romania
  • Status: Offline

Post May 24th, 2004, 11:23 am

can you show us htaccess?
  • madmonk
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: May 04, 2004
  • Posts: 2115
  • Loc: australia
  • Status: Offline

Post May 24th, 2004, 12:38 pm

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..
Tattoos Gallery
  • Eric Bland
  • Born
  • Born
  • No Avatar
  • Joined: May 15, 2004
  • Posts: 3
  • Status: Offline

Post May 24th, 2004, 1:32 pm

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
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post May 24th, 2004, 1:39 pm

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.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • badman_vietnam
  • Born
  • Born
  • No Avatar
  • Joined: Sep 17, 2004
  • Posts: 4
  • Status: Offline

Post September 17th, 2004, 7:13 pm

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 25 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
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.