Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: different domain Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
alixxx83
Newbie
Newbie


Joined: 25 December 2006
Location: Turkey
Online Status: Offline
Posts: 15
Posted: 18 June 2009 at 5:10pm | IP Logged Quote alixxx83

 

hello,

i use 2 domain in my server how can i do this rule for 2 domain

RewriteCond Host: (?:www\.)domain1.com
RewriteRule /([^/?.]+) /video/kategori.asp\?kelime=$1  [I,L]

RewriteCond Host: (?:www\.)domain2.com
RewriteRule /([^/?.]+) /videolar/kategori.asp\?kelime=$1  [I,L]

when i do this; first rule is in force how can i do the correct form of this rule for 2 domain ?

Back to Top View alixxx83's Profile Search for other posts by alixxx83 Visit alixxx83's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 9084
Posted: 19 June 2009 at 4:24am | IP Logged Quote Anton

Sorry, I don't quite understand you. Do you want the same rule trigger for two domains?

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


Joined: 25 December 2006
Location: Turkey
Online Status: Offline
Posts: 15
Posted: 19 June 2009 at 8:44am | IP Logged Quote alixxx83

sory my english is not enought good :)

 

i have 2 domains and when i enter this rule for 2 domains :

first rule for geyikoloji.com:
-----------------------------------------
RewriteCond Host: (?:www\.)geyikoloji.com
RewriteRule /([^/?.]+) /video/kategori.asp\?kelime=$1  [I,L]

second rule for video-videolar.com
------------------------------------
rewriteCond Host: (?:www\.)video-videolar.com
RewriteRule /([^/?.]+) /videolar/kategori.asp\?kelime=$1  [I,L]

domain 2 rule not work !

when i enter this url http://www.video-videolar.com/ali this link go to the first rule ( /video/kategori.asp\?kelime=$1 ) it must go to this url : videolar/videolar/kategori.asp\?kelime=$1

i want every domain rule process its own rule

 

Back to Top View alixxx83's Profile Search for other posts by alixxx83 Visit alixxx83's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 9084
Posted: 22 June 2009 at 1:50am | IP Logged Quote Anton

Do you have these rules in global httpd.ini file in ISAPI_Rewrite installation folder?
Do you have any records in httpd.parse.errors file?
If you leave only the second rule, will it work?

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


Joined: 25 December 2006
Location: Turkey
Online Status: Offline
Posts: 15
Posted: 25 June 2009 at 10:28am | IP Logged Quote alixxx83

hi Anton

thanks for your help.I explain my problem clearly:

I use isapi rw 2 full registered version on IIS 7.0 Windows 2008 server

i have 3 domain ( geyikoloji.com, video-videolar.com, gykfrm.com )

but only in video-videolar.com rule is this:
RewriteRule /([^/?.]+) /video/ara.asp\?kelime=$1 [I,L]

this rule work but when the other domain links like

www.geyikoloji.com/ali
www.gykfrm.com/veli

don't work and it says " 404 - File or directory not found " but when i delete this rule ( RewriteRule /([^/?.]+) /video/ara.asp\?kelime=$1 [I,L] ) all the other domains link work.

i dont have any records in httpd.parse.errors and these rules in global httpd.ini file in ISAPI_Rewrite installation folder

i want to rules work its own domain how can i do this ?

Back to Top View alixxx83's Profile Search for other posts by alixxx83 Visit alixxx83's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 9084
Posted: 26 June 2009 at 1:57am | IP Logged Quote Anton

You should have this rule:

RewriteRule /([^/?.]+) /video/ara.asp\?kelime=$1 [I,L]

in httpd.ini file in the root of video-videolar.com site, but global httpd.ini should contain no rules.


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