Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Rewrite Redirect 404s Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ipwtech
Newbie
Newbie


Joined: 10 February 2010
Online Status: Offline
Posts: 2
Posted: 10 February 2010 at 9:39pm | IP Logged Quote ipwtech

Hi,

So I need some advice with these rewrite rules. We are using the following rewrites so that when you go to domain.com/index.aspx it pulls from the wwwroot folder.

### redirect ###
RewriteCond Host: (?:.+\.)?domain\.com
RewriteRule (.*) /wwwroot$1 [I,L]

The Rule works like we want, but there is a problem. When I use redirects like Response.Redirect("contact.aspx") the URL goes to domain.com/wwwroot/contact.aspx which will not work. Any suggestions about what we can do to fix that aside from modifying the redirect?
Back to Top View ipwtech's Profile Search for other posts by ipwtech
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 11 February 2010 at 3:49am | IP Logged Quote Guests

Hello,
Where is your contact.asp than?
Back to Top View Guests's Profile Search for other posts by Guests
 
ipwtech
Newbie
Newbie


Joined: 10 February 2010
Online Status: Offline
Posts: 2
Posted: 11 February 2010 at 4:05am | IP Logged Quote ipwtech

all content is stored in /wwwroot/ relative to our webdirectory.
Back to Top View ipwtech's Profile Search for other posts by ipwtech
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 11 February 2010 at 4:14am | IP Logged Quote Guests

Please, provide the rewrite.log file.
Logging issues are here
Back to Top View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum