Mod Rewrite / htaccess Help

Discussion in 'Programming' started by nickharper, Jan 16, 2011.

  1. #1
    Hi Guys,

    I am trying to make it so that my blog can be found at domain.com/blog/ and then the posts are domain.com/blog/blog-title/

    I have used the below code but it doesn't seem to work:

    RewriteRule ^blog/([a-z_0-9-]*)/([a-z_0-9-]*)$ blogpost.php?first=$1&second=$2 [L]
    RewriteRule blog blog.php
    Code (markup):
    Thanks
     
    nickharper, Jan 16, 2011 IP
  2. acw

    acw Well-Known Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #2
    From what i've heard...most mod-rewrite is used for SEO?
     
    acw, Jan 17, 2011 IP