mod_rewrite screwup

Discussion in 'PHP' started by swollenpickles, Dec 9, 2006.

  1. #1
    Just tried installing the mod_rewrite MOD on my forum:
    http://www.swollenpickles.com/forum
    now when i click on the forum categories etc I get the 404 error. I used easy mod to install it. Whats gone wrong and how can I get it working??
    Cheers
     
    swollenpickles, Dec 9, 2006 IP
  2. gigapromoters

    gigapromoters Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you created .htaccess ?

    Also, the mod you installed isn't very good as compared to other SEO mods for phpbb, digg into more details at phpbb community and you will find better mods.
     
    gigapromoters, Dec 9, 2006 IP
  3. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #3
    I cut and pasted the .htaccess file that came with the mod into the /forum/ directory.
     
    swollenpickles, Dec 9, 2006 IP
  4. seo-mumbai

    seo-mumbai Well-Known Member

    Messages:
    2,004
    Likes Received:
    183
    Best Answers:
    0
    Trophy Points:
    105
    #4
    few hosting servers dont support Mod_rewrite just ask your hosting guys once.
     
    seo-mumbai, Dec 9, 2006 IP
  5. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The .htaccess might need to be in the root directory ( / ), not /forum ?
     
    matthewrobertbell, Dec 9, 2006 IP
  6. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #6
    I gave that a try and still not working.

    My site is sitting with hostgator. Surely they'd support mod_rewrite?
     
    swollenpickles, Dec 9, 2006 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    the .htaccess will be fine in the forum directory

    paste the htacces code please.
     
    krakjoe, Dec 9, 2006 IP
  8. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #8
    are you sure you are pointing to the right php files? Try learning mod rrewrite yourself, it's not that hard and you'll learn something! There's a good tutorial here on DP.
     
    matthewrobertbell, Dec 9, 2006 IP
  9. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #9
    RewriteEngine On
    RewriteRule ^forums.* /index.php
    
    
    RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=$1&topicdays=$2&start=$3
    RewriteRule ^mforum([0-9]*).* /viewforum.php?f=$1&mark=topic
    RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1
    
    RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=$1&view=previous
    RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=$1&view=next
    RewriteRule ^newtopic([0-9]*).* /viewtopic.php?t=$1&view=newest
    RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
    RewriteRule ^ftopic([0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z]*)-([a-zA-Z]*).* /viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
    RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&start=$2
    RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=$1
    RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=$1
    PHP:
     
    swollenpickles, Dec 9, 2006 IP
  10. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #10
    Do you have any recommendations?
     
    swollenpickles, Dec 10, 2006 IP