![]() | ![]() |
|
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! |
|
|||||||
| Software and web development Databases, graphics, programming, scripting and web development. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Crazy HEXUS.net
Join Date: Jul 2003
Location: The Void.. Floating
Posts: 10,315
Thanks: 24
Thanked 54 Times in 42 Posts
|
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
|
|
|
|
|
#2 (permalink) |
|
Large Member
Join Date: Apr 2004
Posts: 3,136
Thanks: 11
Thanked 14 Times in 13 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 (permalink) |
|
Large Member
Join Date: Apr 2004
Posts: 3,136
Thanks: 11
Thanked 14 Times in 13 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] |
|
To err is human. To really foul things up ... you need a computer.
|
|
|
| Received thanks from: | Stoo (02-08-2008) |
|
|
#4 (permalink) |
|
Crazy HEXUS.net
Join Date: Jul 2003
Location: The Void.. Floating
Posts: 10,315
Thanks: 24
Thanked 54 Times in 42 Posts
|
Re: mod_rewrite headache
Yup, it's V2, I'll give that a go on Monday, cheers
![]() |
|
Originally Posted by silent ben
|
|
|
![]() |
| Breadcrumb | ||||||
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
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 |