Results 1 to 2 of 2

Thread: Mod rewrite help needed

  1. #1
    Join Date
    Oct 2006
    Location
    Malaysia
    Posts
    65
    Rep Power
    161

    Mod rewrite help needed

    I've got broken links with the characteristics:

    Code:
    http://www.domain.com/blog/2006/03/post_title.html
    I need help writing a rule which:
    1. Detects it's from /blog/
    2. Detects year
    3. Detects month
    4. Detects post_title (characters, digits and underscores)
    5. Detects HTML file

    And redirects to a primary URL:

    Code:
    http://blog.new-domain.com
    I've tried this. But doesn't work.

    Code:
    RewriteRule ^blog/([0-9][0-9][0-9][0-9])/([0-9][0-9])/([^&]+).html$ http:// blog.new-domain.com [R]
    Anyone understand and knows how to write a mod rewrite for this?

    Thanks in advance.
    Last edited by dannyfoo; 19-06-2009 at 07:36 PM.
    Websites Made Simple is my Malaysia website design blog.

  2. #2
    Join Date
    Jun 2001
    Location
    BTHO
    Posts
    775
    Rep Power
    240
    There's a permalink redirect plugin which you can use for this purpose.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 27-09-2009, 10:35 AM
  2. Help needed
    By webringgit in forum Website Programming
    Replies: 4
    Last Post: 07-07-2009, 09:53 AM
  3. ASP/ASP.Net Programmer Needed
    By jamalt in forum Job Vacancies
    Replies: 0
    Last Post: 04-08-2007, 07:45 AM
  4. htaccess rewrite help needed~
    By lcf in forum Website Programming
    Replies: 3
    Last Post: 05-04-2007, 01:44 PM
  5. Web Designer Needed in KL
    By sourbee in forum Job Vacancies
    Replies: 0
    Last Post: 28-03-2005, 06:01 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
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112