Results 1 to 3 of 3
  1. #1
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Any .htaccess rewriterule Gurus around?
    Been trying to add a rewriterule in my .htaccess file for something like the following, but don't seem to have it quite right. Basically, trying to create a nice looking url. I think I have the first part right which gets the /123456/, but not the second part.

    Code:
    Trying to change my url to something like this...
    
    http://www.blah.com/123456/Black-Widget--12-size-in-black-color.html
    
    Using this rule, which isn't working.
    
    RewriteRule   ^/([0-9-]+)/([A-Za-z0-9-]+)\.html?$ show.php?p=$1 [L]
    Last edited by Uncle Rico; August 24th, 2008 at 07:32 AM.

  2. #2
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    Location
    North Carolina
    Posts
    2,238
    Looks like I figured it out. I needed to remove the "/" from the beginning of the rule right after the "^".

  3. #3
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    Best place for rewrite tips is at http://www.askapache.com/htaccess/mo...nd-tricks.html.
    Unfortunately it is one of those helpful places where you can wander around learning things for hours - like the ABW for htaccess.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Affiliate gurus
    By SickFade in forum Midnight Cafe'
    Replies: 14
    Last Post: March 4th, 2011, 04:56 PM
  2. Google Gurus I need Help :)
    By esquire2010 in forum Newbie Affiliate FAQs & Helpful Articles
    Replies: 4
    Last Post: July 6th, 2010, 09:50 PM
  3. Calling all htaccess gurus please
    By Chet_B in forum Programming / Datafeeds / Tools
    Replies: 6
    Last Post: October 22nd, 2007, 01:12 PM
  4. RewriteRule htaccess Help
    By Uncle Rico in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: September 7th, 2007, 03:38 PM
  5. RewriteRule
    By mmcbee in forum Cusimano.com Scripts
    Replies: 6
    Last Post: May 19th, 2005, 09:09 PM

Posting Permissions

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