SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: .htaccess help

  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess help

    Code:
    http://localhost/category.php?id=1&page=4
    How do i rewrite the url to something like this:

    Code:
    http://localhost/category/id-1/page-4/
    Where the page number can somtimes not be entered:

    Code:
    http://localhost/category/id-1/

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,097
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    What have you tried so far?
    If you haven't tried anything yet I suggest you start by reading a tutorial on mod_rewrite. I recommend http://www.datakoncepts.com/seo
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •