Results 1 to 4 of 4

Thread: mod_rewrite headache

  1. #1
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    mod_rewrite headache

    Hokey Cokey..

    Running an asp.net website, and using the rather fabby helicon ISAPI_Rewrite plugin..

    The scenario is this:

    Existing website at http://www.mysite.com

    New code inserted as a standalone application in http://www.mysite.com/v2

    After some fun and games playing with web.config inheritence I finally have the v2 app working nicely with the existing site.

    Now, the new architecture has all it's gubbins in an entirely different structure, which I'd like to rewrite so it fits in better with current and future SEO etc..

    So I want to go from this:

    http://www.mysite.com/v2/webpages/ne.../homepage.aspx

    to:

    http://www.mysite.com/producthomepage.aspx

    I've got a rule like this:
    RewriteRule ^producthomepage.aspx\.aspx$ /v2/webpages/newproduct/homepage.aspx [I,L]

    But when it does that, I end up with a 403 forbidden error..

    Umm.. help?
    (\__/)
    (='.'=)
    (")_(")

  2. #2
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: mod_rewrite headache

    Which version of ISAPI_rewrite Stoo? (mod_rewrite is apache by the way). If it's the mod_rewrite 'compatible' version it can be a joy to work with. If it's the old version it can be monstrous.
    To err is human. To really foul things up ... you need a computer.

  3. #3
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: mod_rewrite headache

    Try:

    Code:
    [ISAPI_Rewrite]
    # For what I assume is v2
    # Caching, rewrite repeat setting
    CacheClockRate 300
    RepeatLimit 20
    
    #Block log access etc
    RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
    RewriteRule .*\.isrwhlp / [F,I,O]
    
    #U is to unmangle logging
    RewriteRule /producthomepage.aspx$ /v2/webpages/newproduct/homepage.aspx [I,U,L]
    For starters, and if you need any more help let me know. Don't forget to check your log (httpd.ini.parse.errors - if that is all set up on the server).
    To err is human. To really foul things up ... you need a computer.

  4. Received thanks from:

    Stoo (02-08-2008)

  5. #4
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Re: mod_rewrite headache

    Yup, it's V2, I'll give that a go on Monday, cheers
    (\__/)
    (='.'=)
    (")_(")

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. GFX headache!
    By windog in forum Graphics Cards
    Replies: 17
    Last Post: 17-08-2007, 11:53 PM
  2. £1300 for a custom PC headache. Help!
    By Jay007 in forum PC Hardware and Components
    Replies: 15
    Last Post: 16-10-2006, 08:36 AM
  3. Recommendation on CPU.. HEADACHE!
    By sawyen in forum PC Hardware and Components
    Replies: 30
    Last Post: 07-06-2005, 06:41 PM
  4. nforce audio driver headache
    By silent in forum PC Hardware and Components
    Replies: 23
    Last Post: 05-03-2005, 05:57 PM
  5. SCSI? Headache or what?
    By Bldyannoyed in forum PC Hardware and Components
    Replies: 8
    Last Post: 23-01-2005, 03:54 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
  •