SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mod Rewrite Rule for change in URL structure

    I am in need of a mod rewrite rule to correctly change an existing url structure that looks like this:

    Old:
    somesite.com/scripts/data/database.cgi?ArticleID=29154&report=SingleArticle&file=Data

    Into something that looks like this:

    New:
    somesite.com/oldarticle/id29154.htm

    What I came up with isn't working, but I know I'm close:

    RewriteRule ^scripts/data/database\.cgi?ArticleID=([0-9]+)&report=SingleArticle&file=Data$ ^oldarticle/id$1\.htm [R=301,NC,L] # Permanent Move

    Any help would be greatly appreciated!

    Thanks,

    Dennis
    Last edited by Mittineague; Oct 1, 2013 at 21:13. Reason: delinking example URLs
    Free Invisible Counter - Unlimited Stats - Track AdSense!!!
    PHPTextAd - Text Ad Management Script


Tags for this Thread

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
  •