SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2003
    Location
    UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mod_rewrite question

    Hi

    I'm getting confused somewhere along the line.

    If you take a look at this site...

    http://www.lifeofsmallbeer.co.uk/portfolio/

    Links work from there into the portfolio pieces and into the categories but from the category pages to the portfolio pieces brings a 404. I really don't know what I'm doing wrong. It's no doubt something simple.

    These are my rewrite rules

    Code:
    RewriteRule ^portfolio/([^./]+)/([^./]+)/$ /portfolio/portfolio.php?category_name=$1&friendlyurl=$2 [L]
    
    RewriteRule ^portfolio/([^./]+)/$ /portfolio/category.php?category_name=$1 [L]
    If someone could take a look It would be most appreciated

    Jamie

  2. #2
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm,
    what's the link that gives a 404 ?



    Andrea
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  3. #3
    SitePoint Member
    Join Date
    Jul 2003
    Location
    UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you click the small "beat surrender" image from this page...

    http://www.lifeofsmallbeer.co.uk/portfolio/personal/

    Clicking it from this page works fine though...

    http://www.lifeofsmallbeer.co.uk/portfolio/

    Thanks for replying

  4. #4
    SitePoint Member
    Join Date
    Jul 2003
    Location
    UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OMG. Sorry just realised I've been thick.

    It was pointing to /news/personal/blah_blah/ instead of /portfolio/personal/blah_blah/

    that's what you get for working through the night!

  5. #5
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK ,
    one small note now...

    Instead of /$ use /?$
    Doing that you will cover trailing slashes too



    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  6. #6
    SitePoint Member
    Join Date
    Jul 2003
    Location
    UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers


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
  •