This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: HELP - ad.icfull.com rewrite problem
Author
Message |
cngothic
Newbie


Joined: 22 June 2009
Posts: 11
Posted: 15 November 2010 at 8:55am

hello,

< id=tts_flash code="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=18 height=18>< NAME="_cx" VALUE="476">< NAME="_cy" VALUE="476">< NAME="FlashVars" VALUE="">< NAME="Movie" VALUE="http://www.gstatic.com/translate/_p2.swf">< NAME="Src" VALUE="http://www.gstatic.com/translate/_p2.swf">< NAME="WMode" VALUE="Transparent">< NAME="Play" VALUE="0">< NAME="Loop" VALUE="-1">< NAME="Quality" VALUE="High">< NAME="SAlign" VALUE="">< NAME="Menu" VALUE="-1">< NAME="" VALUE="">< NAME="AllowAccess" VALUE="always">< NAME="Scale" VALUE="ShowAll">< NAME="DeviceFont" VALUE="0">< NAME="Movie" VALUE="0">< NAME="BGColor" VALUE="">< NAME="SWRemote" VALUE="">< NAME="Movie" VALUE="">< NAME="SeamlessTabbing" VALUE="1">< NAME="Pro" VALUE="0">< NAME="ProAddress" VALUE="">< NAME="ProPort" VALUE="0">< NAME="AllowNetworking" VALUE="all">< NAME="AllowFullScreen" VALUE="false">

I have a website icFull.com, some of the root folder,

For example:
icfull.com / ad /
   
icfull.com / ad / stock_a /
      
icfull.com / ad / stock_a / aaaaa.html
   
icfull.com / ad / stock_b /
   
icfull.com / ad / stock_b / bbbbb.html

icfull.com / amd /
icfull.com / atmel /
......


I would like to re-write


ad.icfull.com
   
ad.icfull.com / stock_a /
      
ad.icfull.com / stock_a / aaaaa.html
      
......
amd.icfull.com
atmel.icfull.com


I should rewrite the rules of how to write, thank you

Back to Top Visit cngothic's Homepage
 
cngothic
Newbie


Joined: 22 June 2009
Posts: 11
Posted: 15 November 2010 at 8:57am

cngothic wrote:

hello,

I have a website icFull.com, some of the root folder,

For example:
icfull.com / ad /
   
icfull.com / ad / stock_a /
      
icfull.com / ad / stock_a / aaaaa.html
   
icfull.com / ad / stock_b /
   
icfull.com / ad / stock_b / bbbbb.html

icfull.com / amd /
icfull.com / atmel /
......


I would like to re-write


ad.icfull.com
   
ad.icfull.com / stock_a /
      
ad.icfull.com / stock_a / aaaaa.html
      
......
amd.icfull.com
atmel.icfull.com


I should rewrite the rules of how to write, thank you
Back to Top Visit cngothic's Homepage
 
cngothic
Newbie


Joined: 22 June 2009
Posts: 11
Posted: 15 November 2010 at 8:58am

sorry
I was through google translation, I hope you can understand
Back to Top Visit cngothic's Homepage
 
cngothic
Newbie


Joined: 22 June 2009
Posts: 11
Posted: 15 November 2010 at 11:00am

I realized the following rewrite rules

 

RewriteCond Host: ([a-zA-Z0-9_-]+).51dzw.com      
RewriteRule ^/(.*) /$1/$2 [I,L] 

Back to Top Visit cngothic's Homepage
 
cngothic
Newbie


Joined: 22 June 2009
Posts: 11
Posted: 15 November 2010 at 11:34am

RewriteCond Host: ([a-zA-Z0-9_-]+).51dzw.com      
RewriteRule ^/(.*) /$1/$2 [I,L]
RewriteRule ^/partno/(.*).html /$1/show.asp\?id=$2 [I,L]

The success of the following:

demo.com/ad/stock_a/            ==  ad.demo.com/stock_a/
demo.com/ad/stock_a/a.html   ==  ad.demo.com/stock_a/a.html

but, the following on the wrong

demo.com/ad/show.asp?id=99  == ad.demo.com/partno/99.html

I should rewrite the rules of how to write?

 


Back to Top Visit cngothic's Homepage
 
cngothic
Newbie


Joined: 22 June 2009
Posts: 11
Posted: 15 November 2010 at 11:55pm

Problem was finally resolved.

ISAPI_Rewrite great

Example URL : http://ad.icfull.com

The following rules:

RewriteCond Host: ([a-zA-Z0-9_-]+).icfull.com
RewriteRule ^/ /Xmanufacturer/$1/index.html [I,L]


RewriteCond Host: ([a-zA-Z0-9_-]+).icfull.com
RewriteRule ^/stock_(.*)/ /Xmanufacturer/$1/$2/index.html [I,L]

 

RewriteCond Host: ([a-zA-Z0-9_-]+).icfull.com
RewriteRule ^/stock_(.*)/(.*) /Xmanufacturer/$1/$2/$3 [I,L]


RewriteCond Host: ([a-zA-Z0-9_-]+).icfull.com
RewriteRule ^/partno/(.*).html /Xmanufacturer/$1/show.asp\?id=$2 [I,L]

 


RewriteCond Host: ([a-zA-Z0-9_-]+).icfull.com
RewriteRule ^/css/(.*) /Xmanufacturer/$1/css/$2 [I,L]


RewriteCond Host: ([a-zA-Z0-9_-]+).icfull.com
RewriteRule ^/images/(.*) /Xmanufacturer/$1/images/$2 [I,L]

 

 

Back to Top Visit cngothic's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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