• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development

    Software and web development Databases, graphics, programming, scripting and web development.

    Reply
     
    LinkBack Thread Tools
    Old 01-08-2008, 02:55 PM   #1 (permalink)
    Crazy HEXUS.net
     
    Stoo's Avatar
     
    Join Date: Jul 2003
    Location: The Void.. Floating
    Posts: 10,168
    Thanks: 20
    Thanked 46 Times in 36 Posts
    Stoo's system
    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?

    Originally Posted by silent ben
    Nanotechnology is going to be huge.
    Stoo is offline   Reply With Quote
    Old 01-08-2008, 09:35 PM   #2 (permalink)
    Large Member
     
    Join Date: Apr 2004
    Posts: 3,093
    Thanks: 8
    Thanked 12 Times in 11 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.
    yamangman is offline   Reply With Quote
    Old 01-08-2008, 09:57 PM   #3 (permalink)
    Large Member
     
    Join Date: Apr 2004
    Posts: 3,093
    Thanks: 8
    Thanked 12 Times in 11 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.
    yamangman is offline   Reply With Quote
    Received thanks from:
    Stoo (02-08-2008)
    Old 02-08-2008, 12:45 PM   #4 (permalink)
    Crazy HEXUS.net
     
    Stoo's Avatar
     
    Join Date: Jul 2003
    Location: The Void.. Floating
    Posts: 10,168
    Thanks: 20
    Thanked 46 Times in 36 Posts
    Stoo's system
    Re: mod_rewrite headache

    Yup, it's V2, I'll give that a go on Monday, cheers

    Originally Posted by silent ben
    Nanotechnology is going to be huge.
    Stoo is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On
    Forum Jump

    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    GFX headache! windog Graphics cards and Monitors 17 17-08-2007 11:53 PM
    £1300 for a custom PC headache. Help! Jay007 HEXUS.hardware 15 16-10-2006 08:36 AM
    Recommendation on CPU.. HEADACHE! sawyen HEXUS.hardware 30 07-06-2005 06:41 PM
    nforce audio driver headache silent HEXUS.hardware 23 05-03-2005 04:57 PM
    SCSI? Headache or what? Bldyannoyed HEXUS.hardware 8 23-01-2005 02:54 PM



    All times are GMT +1. The time now is 02:18 AM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned. HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    Powered by vBulletin® Version 3.7.2
    Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.2.0
    © Copyright 2007 HEXUS Limited. All rights reserved. Unauthorised reproduction strictly prohibited.