help mod_rewite on cat and pagination

Discussion in 'Apache' started by frostherrien, Sep 15, 2007.

  1. #1
    First, thank to read my post !

    im not a pro in mod_rewite so i ask you !

    I want my url: www.domain.com/?cat=funny+video
    to be : www.domain.com/funny-video/

    and : http://www.domain.com/?page=1&cat=funny%20video
    to be: http://www.domain.com/funny-video-1/
    or : http://www.domain.com/funny-video/1/

    how that ca be done.

    current htacces:
    RewriteEngine on
    Options +FollowSymlinks
    RewriteRule ^([0-9]+)-([^/]+)\.html*$ out.php?id=$1
    RewriteRule ^my-video-([0-9]+)-([^/]+)\.html$ video.php?id=$1
     
    frostherrien, Sep 15, 2007 IP
  2. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #2
    Are you using WordPress... if yes then it can be done very easily..
     
    infogle, Sep 15, 2007 IP
  3. frostherrien

    frostherrien Active Member

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    no i don't use wordpress. i use a video script called babelogger is basicly an adult script but i use at humor site
     
    frostherrien, Sep 15, 2007 IP