Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Help required in rewrite Rules Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bepenfriends
Newbie
Newbie


Joined: 21 April 2006
Location: India
Online Status: Offline
Posts: 29
Posted: 24 September 2008 at 12:01am | IP Logged Quote bepenfriends

Hi all,

Below are the rewrite rules for my website

RewriteRule ([^/]+)/rss2.0\.xml rss2.0.asp\?content=$1 [I,L,O]
RewriteRule ([^/]+)/([^/]+)/BlogsOf-(\d+)-(\d+).asp Archives.asp\?content=$1&strYY=$3&strMM=$4
RewriteRule ([^/]+)/[^/]+/(\d+)/(\d+)/(\d+)/(\d+)\.asp blogs.asp\?blog=$1&strYY=$2&strMM=$3&strDD=$4&strPostName=$5 [I,L]
RewriteRule ([^/]+)/rss\.xml rss.asp\?content=$1 [I,L]
RewriteRule ([^/]+)/? mainpage.asp\?content=$1 [I,L,O]

the url patterns are

http://blogs.bepenfriends.com/bepenfriends
http://blogs.bepenfriends.com/bepenfriends/Archieves/2008/08/06/20080806004725.asp
http://blogs.bepenfriends.com/bepenfriends/rss.xml
http://blogs.bepenfriends.com/bepenfriends/rss2.0.xml
http://blogs.bepenfriends.com/bepenfriends/archives/BlogsOf-2007-11.asp

The url is working fine and everything is working good. but the problem is

When i am trying to access my admin URL

http://blogs.bepenfriends.com/admin/login.asp ISAPI is trying to use a rewrite rule "RewriteRule ([^/]+)/? mainpage.asp\?content=$1 [I,L,O]" and trying to process that.

I am not sure where the problem is. due to this problem, my blog page is not displaying any image which is stored physically in my folders

Kindly help me



__________________
want to haveFree online dating singles and dating personals for free
Back to Top View bepenfriends's Profile Search for other posts by bepenfriends Visit bepenfriends's Homepage
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 24 September 2008 at 5:51pm | IP Logged Quote Vyacheslav

Hi.
Please try this:
Code:
RewriteRule ^([^/]+)/?$ mainpage.asp\?content=$1 [I,L,O]


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
bepenfriends
Newbie
Newbie


Joined: 21 April 2006
Location: India
Online Status: Offline
Posts: 29
Posted: 25 September 2008 at 6:41am | IP Logged Quote bepenfriends

Shinkarenko,
Its not working. 

 



__________________
want to haveFree online dating singles and dating personals for free
Back to Top View bepenfriends's Profile Search for other posts by bepenfriends Visit bepenfriends's Homepage
 
bepenfriends
Newbie
Newbie


Joined: 21 April 2006
Location: India
Online Status: Offline
Posts: 29
Posted: 25 September 2008 at 6:58am | IP Logged Quote bepenfriends

let me give some background of this problem.

Recently i switched my host from dedicated to shared. in my dedicated machine i had ISAPI 2.0 lite version and my shared hoster has ISAPI 3.0 paid version.

when i shifted my site to shared hosting i landed into trouble.

Vyacheslav, can you help me in this. I am not sure how to write the rule for this. When i used regextester (isapi3.0) i am unable to get proper results.

test 1

RewriteRule ^([^/]+)/?$ mainpage.asp\?content=$1

Test string blogs.bepenfriends.com/bepenfriends

Expected : bepenfriends
Actual : Pattern Not matched

Test 2:

RewriteRule ^([^/]+)/? mainpage.asp\?content=$1

Test string blogs.bepenfriends.com/bepenfriends

Expected : bepenfriends
Actual : blogs.bepenfriends.com

i am not sure how to test using regex tester



__________________
want to haveFree online dating singles and dating personals for free
Back to Top View bepenfriends's Profile Search for other posts by bepenfriends Visit bepenfriends's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 25 September 2008 at 7:56am | IP Logged Quote Anton

Guess you need rules for v3. Please try the following
config and in case of failure, please provide rewrite
log records for your request (to enable logging please
put "RewriteLogLevel 9" directive into http.conf):

RewriteBase /
RewriteRule ^([^/]+)/?$ mainpage.asp?content=$1 [NC,L]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
bepenfriends
Newbie
Newbie


Joined: 21 April 2006
Location: India
Online Status: Offline
Posts: 29
Posted: 28 September 2008 at 10:47pm | IP Logged Quote bepenfriends

Hi anton,

Is the rewrite Log and website Log are same. When i refered you answer my host is suggesting me to use the website Log.

if both are different, please let me knwo the default location where the rewrite rules logs its errors.



__________________
want to haveFree online dating singles and dating personals for free
Back to Top View bepenfriends's Profile Search for other posts by bepenfriends Visit bepenfriends's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 29 September 2008 at 7:24am | IP Logged Quote Anton

Rewrite log resides in ISAPI_Rewrite installation folder by default.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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 can vote in polls in this forum