1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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